{"id":24722256,"url":"https://github.com/seferov/composer-env-script","last_synced_at":"2025-10-28T07:06:49.880Z","repository":{"id":60425828,"uuid":"543065595","full_name":"seferov/composer-env-script","owner":"seferov","description":"Composer script for handling gitignored env files","archived":false,"fork":false,"pushed_at":"2022-10-01T20:22:11.000Z","size":504,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-14T14:46:10.567Z","etag":null,"topics":["composer","dotenv"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seferov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-29T10:43:27.000Z","updated_at":"2023-11-30T02:17:38.000Z","dependencies_parsed_at":"2022-09-29T11:50:27.318Z","dependency_job_id":null,"html_url":"https://github.com/seferov/composer-env-script","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/seferov/composer-env-script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seferov%2Fcomposer-env-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seferov%2Fcomposer-env-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seferov%2Fcomposer-env-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seferov%2Fcomposer-env-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seferov","download_url":"https://codeload.github.com/seferov/composer-env-script/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seferov%2Fcomposer-env-script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001947,"owners_count":26083226,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["composer","dotenv"],"created_at":"2025-01-27T12:17:27.377Z","updated_at":"2025-10-09T18:30:51.775Z","avatar_url":"https://github.com/seferov.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer Env File Script\n\nThe package allows creating or updating ignored env file (ex: `.env.local`) based on\na default env file (ex: `.env`) interactively. \n\n![demo](assets/demo.gif)\n\n----\n\n### Installation\n\n```shell\ncomposer require seferov/composer-env-script\n```\n\nModify your `composer.json` file:\n```json\n{\n  \"scripts\": {\n    \"post-install-cmd\": [\n      \"Seferov\\\\ComposerEnvScript\\\\ScriptHandler::buildEnv\"\n    ],\n    \"post-update-cmd\": [\n      \"Seferov\\\\ComposerEnvScript\\\\ScriptHandler::buildEnv\"\n    ]\n  }\n}\n```\n\n### Configuration\n\nBy default, the package generates/updates `.env.local` file based on `.env`. This can be\nchanged trough composer.json extra. The configuration also allows managing multiple .env files:\n\n```json\n{\n  \"extra\": {\n    \"seferov-env\": [\n      {\n        \"from-file\": \".env\",\n        \"to-file\": \".env.local\"\n      },\n      {\n        \"from-file\": \"somepath/.env.test\",\n        \"to-file\": \"somepath/.env.test.local\"\n      }\n    ]\n  }\n}\n```\n\n### Credits\n\nThe package is highly inspired by https://github.com/Incenteev/ParameterHandler which is for\nmanaging ignored parameters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseferov%2Fcomposer-env-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseferov%2Fcomposer-env-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseferov%2Fcomposer-env-script/lists"}