{"id":20540572,"url":"https://github.com/utopia-php/system","last_synced_at":"2025-04-05T16:09:09.064Z","repository":{"id":37490390,"uuid":"331312382","full_name":"utopia-php/system","owner":"utopia-php","description":"Lite \u0026 fast micro PHP system library that is **easy to use**.","archived":false,"fork":false,"pushed_at":"2024-10-09T14:46:36.000Z","size":98,"stargazers_count":23,"open_issues_count":0,"forks_count":14,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-29T15:09:13.835Z","etag":null,"topics":["hacktoberfest","php","utopia"],"latest_commit_sha":null,"homepage":"https://appwrite.io","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/utopia-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2021-01-20T13:17:36.000Z","updated_at":"2024-11-04T19:06:37.000Z","dependencies_parsed_at":"2023-01-20T21:19:06.007Z","dependency_job_id":"43a62cd4-40e2-452e-a4c0-3fa5f22348ce","html_url":"https://github.com/utopia-php/system","commit_stats":{"total_commits":56,"total_committers":10,"mean_commits":5.6,"dds":0.6071428571428572,"last_synced_commit":"289c4327713deadc9c748b5317d248133a02f245"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utopia-php","download_url":"https://codeload.github.com/utopia-php/system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361691,"owners_count":20926643,"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":["hacktoberfest","php","utopia"],"created_at":"2024-11-16T01:16:19.978Z","updated_at":"2025-04-05T16:09:09.046Z","avatar_url":"https://github.com/utopia-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utopia System\n\n[![Build Status](https://travis-ci.com/utopia-php/system.svg?branch=main)](https://travis-ci.com/utopia-php/system)\n![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/system.svg)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)\n\nUtopia System library is a simple and lite library to obtain information about the host's system, and provides an easy way to detect on which CPU architecture your code is running. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).\n\nAlthough this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free and can be used as standalone with any other PHP project or framework.\n\n## Getting Started\n\nInstall using composer:\n```bash\ncomposer require utopia-php/system\n```\n\nInit in your application:\n```php\n\u003c?php\n\nrequire_once __DIR__ . '/../../vendor/autoload.php';\n\nuse Utopia\\System\\System;\n\necho System::getOS(); // prints \"Linux\" for example\necho System::getHostname(); // Your hostname\necho System::getArch(); // x86_64\necho System::getEnv('MY_ENV_VAR'); // test\n\necho System::isArm(); // bool\necho System::isPPC(); // bool\necho System::isX86(); // bool\n```\n\n## System Requirements\n\nUtopia Framework requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.\n\n## Supported Methods\n|         | getCPUCores | getCPUUsage | getMemoryTotal | getMemoryFree | getDiskTotal | getDiskFree | getIOUsage | getNetworkUsage |\n|---------|-------------|-------------------|----------------|---------------|--------------|-------------|------------|-----------------|\n| Windows | ✅           |                   |                |               | ✅            | ✅           |            |                 |\n| MacOS   | ✅           |                   | ✅              | ✅             | ✅            | ✅           |            |                 |\n| Linux   | ✅           | ✅                 | ✅              | ✅             | ✅            | ✅           | ✅          | ✅               |\n\n## Authors\n\n**Eldad Fux**\n\n+ [https://twitter.com/eldadfux](https://twitter.com/eldadfux)\n+ [https://github.com/eldadfux](https://github.com/eldadfux)\n\n**Torsten Dittmann**\n\n+ [https://twitter.com/dittmanntorsten](https://twitter.com/dittmanntorsten)\n+ [https://github.com/torstendittmann](https://github.com/torstendittmann)\n\n## Copyright and license\n\nThe MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futopia-php%2Fsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fsystem/lists"}