{"id":13617324,"url":"https://github.com/symfony/dotenv","last_synced_at":"2025-05-12T05:33:04.518Z","repository":{"id":37951869,"uuid":"78772595","full_name":"symfony/dotenv","owner":"symfony","description":"Registers environment variables from a .env file","archived":false,"fork":false,"pushed_at":"2025-05-02T09:22:19.000Z","size":397,"stargazers_count":3781,"open_issues_count":0,"forks_count":29,"subscribers_count":15,"default_branch":"7.2","last_synced_at":"2025-05-12T04:12:37.226Z","etag":null,"topics":["component","dotenv","env","environment","php","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"https://symfony.com/dotenv","language":"PHP","has_issues":false,"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/symfony.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"fabpot","tidelift":"packagist/symfony/symfony","custom":"https://symfony.com/sponsor"}},"created_at":"2017-01-12T18:05:23.000Z","updated_at":"2025-05-11T00:51:27.000Z","dependencies_parsed_at":"2024-01-05T22:20:22.993Z","dependency_job_id":"34949972-95ed-43cf-901c-9446a7a43a6b","html_url":"https://github.com/symfony/dotenv","commit_stats":{"total_commits":194,"total_committers":65,"mean_commits":"2.9846153846153847","dds":0.7164948453608248,"last_synced_commit":"56a10f3032a6c2f085b13bc429e9d78a2c895dc4"},"previous_names":[],"tags_count":304,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/dotenv/tar.gz/refs/heads/7.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253672735,"owners_count":21945482,"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":["component","dotenv","env","environment","php","symfony","symfony-component"],"created_at":"2024-08-01T20:01:39.992Z","updated_at":"2025-05-12T05:33:04.470Z","avatar_url":"https://github.com/symfony.png","language":"PHP","readme":"Dotenv Component\n================\n\nSymfony Dotenv parses `.env` files to make environment variables stored in them\naccessible via `$_SERVER` or `$_ENV`.\n\nGetting Started\n---------------\n\n```bash\ncomposer require symfony/dotenv\n```\n\n```php\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\n$dotenv = new Dotenv();\n$dotenv-\u003eload(__DIR__.'/.env');\n\n// you can also load several files\n$dotenv-\u003eload(__DIR__.'/.env', __DIR__.'/.env.dev');\n\n// overwrites existing env variables\n$dotenv-\u003eoverload(__DIR__.'/.env');\n\n// loads .env, .env.local, and .env.$APP_ENV.local or .env.$APP_ENV\n$dotenv-\u003eloadEnv(__DIR__.'/.env');\n```\n\nResources\n---------\n\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n","funding_links":["https://github.com/sponsors/fabpot","https://tidelift.com/funding/github/packagist/symfony/symfony","https://symfony.com/sponsor"],"categories":["PHP","配置 Configuration","Configuration","类库","Table of Contents"],"sub_categories":["无服务器的 Serverless","Serverless","未归类","Configuration"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fdotenv/lists"}