{"id":36979234,"url":"https://github.com/frdl/environment","last_synced_at":"2026-01-13T22:48:50.420Z","repository":{"id":50361671,"uuid":"265161195","full_name":"frdl/environment","owner":"frdl","description":"Simple PHP environment manager.","archived":false,"fork":false,"pushed_at":"2020-07-12T04:02:21.000Z","size":42,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T20:56:04.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"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/frdl.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":"2020-05-19T06:12:18.000Z","updated_at":"2022-07-28T13:55:49.000Z","dependencies_parsed_at":"2022-09-19T04:41:31.003Z","dependency_job_id":null,"html_url":"https://github.com/frdl/environment","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/frdl/environment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fenvironment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fenvironment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fenvironment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fenvironment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frdl","download_url":"https://codeload.github.com/frdl/environment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fenvironment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-13T22:48:50.335Z","updated_at":"2026-01-13T22:48:50.410Z","avatar_url":"https://github.com/frdl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Environment\n\nThis is a environment library for quick environment setup. [Forked from ahirarge/environment](https://github.com/ahirarge/environment)\n\n## Installation\n\nTo install through composer, simply put the following in your `composer.json` file:\n\n```json\n{\n    \"require\": {\n        \"frdl/environment\": \"*\",\n    }\n}\n```\n\n## Usage\n\n`index.php`\n```php \n$environment = new Frdlweb\\Environment\\Environment;\n$environment-\u003epath('/')\n            -\u003edetectEnvironment([\n                'local' =\u003e[\n                    'required' =\u003e true,\n                    'hosts' =\u003e ['your-machine-name']\n                ]\n            ]);\n```\n\n`index.php`\n```php \n$environment = new Frdlweb\\Environment\\Environment;\n$environment-\u003edir('/home/')\n            -\u003edetectEnvironment([\n                'local' =\u003e[\n                    'required' =\u003e false,\n                    'hosts' =\u003e ['your-machine-name']\n                ]\n            ]);\n```\n\n\u003e You can check your machine name with `hostname` command.\n\n`.env.local.php`\n```php \nreturn [\n        \n        'secret-password' =\u003e 'secret-password-value'\n\n    ];\n```\n\n`.env.local.json`\n```json\n{\n    \"environment\": \"development\"\n}\n```\n\n```php\n$secret = getenv('secret-password');\n```\n\n## Facades \n\nIf you wish, you can use environment library with facade connector. Please visit for guideline. [ahir/facades](https://github.com/ahirarge/facades)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrdl%2Fenvironment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrdl%2Fenvironment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrdl%2Fenvironment/lists"}