[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8468":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":17,"lastSyncTime":31,"discoverSource":32},8468,"dotenv","symfony\u002Fdotenv","symfony","Registers environment variables from a .env file","https:\u002F\u002Fsymfony.com\u002Fdotenv",null,"PHP",3791,28,14,0,1,2,26.39,"MIT License",false,"8.1",[23,5,24,25,26,7,27],"component","env","environment","php","symfony-component","2026-06-12 02:01:54","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\u002Fdotenv\n```\n\nUsage\n-----\n\n> For an .env file with this format:\n\n```env\nYOUR_VARIABLE_NAME=my-string\n```\n\n```php\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\n$dotenv = new Dotenv();\n$dotenv->load(__DIR__.'\u002F.env');\n\n\u002F\u002F you can also load several files\n$dotenv->load(__DIR__.'\u002F.env', __DIR__.'\u002F.env.dev');\n\n\u002F\u002F overwrites existing env variables\n$dotenv->overload(__DIR__.'\u002F.env');\n\n\u002F\u002F loads .env, .env.local, and .env.$APP_ENV.local or .env.$APP_ENV\n$dotenv->loadEnv(__DIR__.'\u002F.env');\n\n\u002F\u002F Usage with $_ENV\n$envVariable = $_ENV['YOUR_VARIABLE_NAME'];\n\n\u002F\u002F Usage with $_SERVER\n$envVariable = $_SERVER['YOUR_VARIABLE_NAME'];\n```\n\nResources\n---------\n\n * [Contributing](https:\u002F\u002Fsymfony.com\u002Fdoc\u002Fcurrent\u002Fcontributing\u002Findex.html)\n * [Report issues](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony\u002Fissues) and\n   [send Pull Requests](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony\u002Fpulls)\n   in the [main Symfony repository](https:\u002F\u002Fgithub.com\u002Fsymfony\u002Fsymfony)\n","Symfony\u002Fdotenv 是一个用于从 .env 文件中读取环境变量并使其可通过 `$_SERVER` 或 `$_ENV` 访问的 PHP 组件。其核心功能包括解析 .env 文件、加载多个文件以及覆盖现有环境变量。该组件支持多种加载方式，如直接加载指定文件或根据应用环境自动选择合适的 .env 文件。适用于需要灵活管理和使用环境配置的 PHP 项目，特别是在开发和部署过程中希望保持一致性的场景下非常有用。","2026-06-11 03:18:12","top_language"]