承接 qveronq/laravel-infisical-sync 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

qveronq/laravel-infisical-sync

最新稳定版本:v0.2.0

Composer 安装命令:

composer require qveronq/laravel-infisical-sync

包简介

Sync your Laravel .env secrets with Infisical. Push, pull and diff environment variables between your .env file and your Infisical vault using the official PHP SDK.

README 文档

README

Sync your Laravel .env secrets with Infisical. Push, pull, diff and sync environment variables between your .env file and your Infisical vault using the official PHP SDK.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

composer require qveronq/laravel-infisical-sync

Publish the config file:

php artisan vendor:publish --tag="laravel-infisical-sync-config"

Then add the following to your .env:

INFISICAL_URL=https://app.infisical.com          # Optional, for self-hosted instances
INFISICAL_CLIENT_ID=your-machine-identity-client-id
INFISICAL_CLIENT_SECRET=your-machine-identity-client-secret
INFISICAL_PROJECT_ID=your-project-id
INFISICAL_ENVIRONMENT=dev

Usage

Pull secrets from Infisical into your .env

php artisan infisical:pull

Options: --env=, --path=, --force, --backup, --dry-run, --show-values

Push your .env variables to Infisical

php artisan infisical:push

Options: --env=, --path=, --force, --dry-run, --show-values

Compare local .env with Infisical

php artisan infisical:diff

Options: --env=, --path=, --show-values

Bidirectional sync

Sync both ways in a single command: pushes local-only variables to Infisical and pulls remote-only variables to your .env.

php artisan infisical:sync

Options: --env=, --path=, --conflict=, --force, --backup, --dry-run, --show-values

Conflict resolution

When a variable exists on both sides with different values, the --conflict option (or config sync_conflict_strategy) controls the behavior:

Strategy Behavior
skip (default) Conflicts are ignored and shown as warnings
remote Infisical value overwrites local
local Local value overwrites Infisical
# Use Infisical as source of truth for conflicts
php artisan infisical:sync --conflict=remote

# Force sync without confirmation (useful for CI/CD)
php artisan infisical:sync --force --conflict=remote

Configuration

// config/infisical-sync.php
return [
    'url' => env('INFISICAL_URL', 'https://app.infisical.com'),
    'client_id' => env('INFISICAL_CLIENT_ID'),
    'client_secret' => env('INFISICAL_CLIENT_SECRET'),
    'project_id' => env('INFISICAL_PROJECT_ID'),
    'environment' => env('INFISICAL_ENVIRONMENT', 'dev'),
    'secret_path' => env('INFISICAL_SECRET_PATH', '/'),
    'exclude_keys' => [
        'INFISICAL_*', // Supports wildcards
    ],
    'sync_conflict_strategy' => env('INFISICAL_SYNC_CONFLICT_STRATEGY', 'skip'),
    'env_file' => base_path('.env'),
];

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 300
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 22
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固