Download the PHP package dragon-code/env-sync-laravel without Composer
On this page you can find all versions of the php package dragon-code/env-sync-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dragon-code/env-sync-laravel
More information about dragon-code/env-sync-laravel
Files in dragon-code/env-sync-laravel
Package env-sync-laravel
Short Description env-sync package adapter for Laravel framework
License MIT
Informations about the package env-sync-laravel
Environment Synchronization
Installation
To get the latest version of Environment Synchronization
, simply require the project using Composer:
Or manually update require-dev
block of composer.json
and run composer update
.
Upgrade from andrey-helldar/env-sync-laravel
- In your
composer.json
file, replace"andrey-helldar/env-sync-laravel": "^1.0"
with"dragon-code/env-sync-laravel": "^2.0"
. - Run the
composer update
command.
How to use
This package scans files with
*.php
,*.json
,*.yml
,*.yaml
and*.twig
extensions in the specified folder, receiving from them calls to theenv
andgetenv
functions. Based on the received values, the package creates a key-value array. When saving, the keys are split into blocks by the first word before the_
character.Also, all keys are sorted alphabetically.
Laravel / Lumen Frameworks
Just execute the php artisan env:sync
command.
You can also specify the invocation when executing the composer update
command in composer.json
file:
Now, every time you run the composer update
command, the environment settings file will be synchronized.
If you want to force the stored values, you can change the configuration file by publishing it with the command:
Now you can change the file config/env-sync.php
.
Native using
See the documentation in the base repository.
License
This package is licensed under the MIT License.
All versions of env-sync-laravel with dependencies
dragon-code/env-sync Version ^3.4.4 || ^4.0
illuminate/console Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0