{"id":36989612,"url":"https://github.com/sagebind/environ","last_synced_at":"2026-01-13T23:30:41.890Z","repository":{"id":56955704,"uuid":"36571988","full_name":"sagebind/environ","owner":"sagebind","description":"Simple package for getting environment and platform information. [Unmaintained]","archived":true,"fork":false,"pushed_at":"2015-12-21T22:21:59.000Z","size":120,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-18T05:57:22.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/sagebind.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":"2015-05-30T19:13:25.000Z","updated_at":"2023-01-28T20:51:35.000Z","dependencies_parsed_at":"2022-08-21T04:40:32.067Z","dependency_job_id":null,"html_url":"https://github.com/sagebind/environ","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sagebind/environ","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fenviron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fenviron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fenviron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fenviron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagebind","download_url":"https://codeload.github.com/sagebind/environ/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fenviron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405140,"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-13T23:30:41.319Z","updated_at":"2026-01-13T23:30:41.881Z","avatar_url":"https://github.com/sagebind.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Environ\n[![Version](https://img.shields.io/packagist/v/coderstephen/environ.svg)](https://packagist.org/packages/coderstephen/environ)\n[![License](https://img.shields.io/packagist/l/coderstephen/environ.svg)](https://packagist.org/packages/coderstephen/environ)\n[![Downloads](https://img.shields.io/packagist/dt/coderstephen/environ.svg)](https://packagist.org/packages/coderstephen/environ)\n\nA simple package for discovering information about an execution environment and platform. Generic name, generic purpose.\n\nNote that this package is a work-in-progress. See [Contributing](#contributing) below if you want to help out.\n\n## Overview\nThe purpose of this package is to provide a simple interface for discovering information about a execution environment, like what operating system is installed, number of processors, or what PHP interpreter is being used. I created this because there wasn't something that already existed for PHP.\n\n## Installation\nInstall with [Composer](http://getcomposer.org), obviously:\n\n```sh\n$ composer require coderstephen/environ\n```\n\n## Usage\nExtremely simple usage; there are a few stateless classes that provide static methods for querying the system. Below is a very simple example:\n\n```php\nuse Environ\\Platform;\n\nprintf(\"CPU architecture: %s\\n\", Platform::getArch());\nprintf(\"Number of CPU cores: %d\\n\", Platform::getCpuCount());\nprintf(\"Operating system: %s\\n\", Platform::getOSName());\nprintf(\"Linux distro: %s\\n\", Platform::linuxDistribution());\n```\n\nYou can also test some of the results environ gives for your current environment with a provided script:\n\n```sh\n$ vendor/bin/environ-info\n\n-- Platform --\nMachine name         : myboss-laptop\nOperating system     : Linux\nOS release           : 3.19.0-23-generic\nOS version           : #24-Ubuntu SMP Tue Jul 7 18:52:55 UTC 2015\nCPU architecture     : x86_64\n64-bit               : yes\nNumber of processors : 8\n\n-- Linux distribution --\nname                 : ubuntu\nrelease              : 15.04\ncodename             : vivid\npretty_name          : Ubuntu 15.04\n\n-- Runtime --\nInterpreter binary   : /usr/bin/php5\nVersion              : 5.6.4-4ubuntu6.2\n64-bit               : yes\nThread safe          : no\nHHVM                 : no\nJPHP                 : no\nServer module        : no\n```\n\n## Reference\nYou can view a very detailed reference online [here](http://coderstephen.github.io/environ/api).\n\n## Contributing\nWant to contribute? The best way to contribute is to test the code on a wide array of systems with varying setups and to verify the results are as expected. If they aren't, just [create a new issue](https://github.com/coderstephen/environ/issues/new) here on GitHub and we will fix it. If you are adventurous, feel free to fork, patch \u0026 submit a pull request that fixes the issue as well.\n\n## Where to get help\nNeed help? Just [send me an email](mailto:me@stephencoakley.com) with your questions. Be sure to add \"environ\" to the message subject line so I know how I can help you out.\n\n## License\nThis library is licensed under the MIT license. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagebind%2Fenviron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagebind%2Fenviron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagebind%2Fenviron/lists"}