You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2025. It is now read-only.
> If you are using the Laravel framework, then install the [andrey-helldar/env-sync-laravel](https://github.com/andrey-helldar/env-sync-laravel) package instead.
19
-
>
20
-
> If you are using the Symfony framework, then install the [andrey-helldar/env-sync-symfony](https://github.com/andrey-helldar/env-sync-symfony) package instead.
14
+
> If you are using the Laravel framework, then install the [dragon-code/env-sync-laravel](https://github.com/TheDragonCode/env-sync-laravel) package instead.
21
15
22
16
23
17
To get the latest version of `Environment Synchronization`, simply require the project using [Composer](https://getcomposer.org):
24
18
25
19
```bash
26
-
$ composer require andrey-helldar/env-sync --dev
20
+
$ composer require dragon-code/env-sync --dev
27
21
```
28
22
29
23
Or manually update `require-dev` block of `composer.json` and run `composer update`.
30
24
31
25
```json
32
26
{
33
27
"require-dev": {
34
-
"andrey-helldar/env-sync": "^2.0"
28
+
"dragon-code/env-sync": "^3.0"
35
29
}
36
30
}
37
31
```
38
32
33
+
### Upgrade from `andrey-helldar/env-sync`
34
+
35
+
1. In your `composer.json` file, replace "andrey-helldar/env-sync": "^1.0" with "dragon-code/env-sync": "^3.0".
36
+
2. Replace the `Helldar\EnvSync` namespace with `DragonCode\EnvSync` in your app;
37
+
3. Run the command `composer update`.
38
+
4. Profit!
39
+
39
40
## How to use
40
41
41
42
> This package scans files with `*.php`, `*.json`, `*.yml`, `*.yaml` and `*.twig` extensions in the specified folder, receiving from them calls to the `env` and `getenv` functions.
@@ -45,15 +46,14 @@ Or manually update `require-dev` block of `composer.json` and run `composer upda
45
46
46
47
### Frameworks
47
48
48
-
* Laravel / Lumen Frameworks - See the documentation in [this repository](https://github.com/andrey-helldar/env-sync-laravel).
49
-
* Symfony Framework - See the documentation in [this repository](https://github.com/andrey-helldar/env-sync-symfony).
49
+
* Laravel / Lumen Frameworks - See the documentation in [this repository](https://github.com/TheDragonCode/env-sync-laravel).
50
50
51
51
### Native using
52
52
53
53
To call a command in your application, you need to do the following:
54
54
55
55
```php
56
-
use Helldar\EnvSync\Services\Syncer;
56
+
use DragonCode\EnvSync\Services\Syncer;
57
57
58
58
protected function syncer(): Syncer
59
59
{
@@ -72,7 +72,7 @@ protected function sync()
72
72
If you want to define default values or specify which key values should be stored, you need to pass an array to the constructor of the `Config` class:
73
73
74
74
```php
75
-
use Helldar\EnvSync\Services\Syncer;
75
+
use DragonCode\EnvSync\Services\Syncer;
76
76
77
77
protected function syncer(): Syncer
78
78
{
@@ -93,28 +93,18 @@ You can also suggest your implementation by sending a PR. We will be glad 😊
93
93
This package is licensed under the [MIT License](LICENSE).
0 commit comments