{"id":16355744,"url":"https://github.com/jedymatt/laravel-sail-env","last_synced_at":"2025-10-26T03:31:09.494Z","repository":{"id":45832861,"uuid":"514787358","full_name":"jedymatt/laravel-sail-env","owner":"jedymatt","description":"Configures .env file to match the laravel sail environment variable's requirements.","archived":false,"fork":false,"pushed_at":"2023-03-11T05:29:10.000Z","size":42,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T14:16:07.379Z","etag":null,"topics":["env","larave-sail-env","laravel","laravel-package","laravel-sail","php","sail"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/jedymatt/laravel-sail-env","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jedymatt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-17T08:26:10.000Z","updated_at":"2023-04-17T22:19:14.000Z","dependencies_parsed_at":"2023-01-23T18:45:18.132Z","dependency_job_id":null,"html_url":"https://github.com/jedymatt/laravel-sail-env","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedymatt%2Flaravel-sail-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedymatt%2Flaravel-sail-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedymatt%2Flaravel-sail-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedymatt%2Flaravel-sail-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedymatt","download_url":"https://codeload.github.com/jedymatt/laravel-sail-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238254113,"owners_count":19441789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["env","larave-sail-env","laravel","laravel-package","laravel-sail","php","sail"],"created_at":"2024-10-11T01:41:41.466Z","updated_at":"2025-10-26T03:31:09.187Z","avatar_url":"https://github.com/jedymatt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-sail-env\n\n![Packagist Downloads](https://img.shields.io/packagist/dm/jedymatt/laravel-sail-env?style=flat-square)\n![Packagist Version](https://img.shields.io/packagist/v/jedymatt/laravel-sail-env?style=flat-square)\n![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/jedymatt/laravel-sail-env?style=flat-square)\n\nConfigures .env file to match the sail environment variable's requirements.\n\n\n## Installation\n\nInstall as development dependency:\n\n```bash\ncomposer require --dev jedymatt/laravel-sail-env\n```\n\n## Usage\n\nTo configure .env file:\n\n```bash\nphp artisan sail:env\n```\n\n\n## Why is this created?\n\nTo configure the .env file without having to run `php artisan sail:install` again just to replace the variables in .env file.\nIt would be tedious specially when you have custom configuration in your *docker-compose.yml* because `sail:install` command overwrites your *docker-compose.yml* file.\n\n\n## How?\n\n__[v1.1.5 or newer]__ It reads the services of sail inside docker-compose.yml file using yaml parser.\nThen, It uses the sail's _InteractsWithDockerComposeServices_ trait to replace env variables so that it keeps in sync to _laravel/sail_ package.\n\n__[v1.1.4 or older]__ It reads the services of sail inside docker-compose.yml file using regex.\nThen, It uses the sail's *InstallCommand's replaceEnvVariables* method so that it keeps in sync to *laravel/sail* package.\n\n\n## Notes\n\nv1.1.5 or newer is only compatible to laravel/sail v1.20.0 and up.\n\n## Found Bugs?\n\nReport to [GitHub Issues](https://github.com/jedymatt/laravel-env-sail/issues)\n\n## Have suggestions?\n\nFeel free to create discussion in [GitHub Discussions](https://github.com/jedymatt/laravel-sail-env/discussions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedymatt%2Flaravel-sail-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedymatt%2Flaravel-sail-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedymatt%2Flaravel-sail-env/lists"}