{"id":20312867,"url":"https://github.com/robertsaupe/php-systeminfo","last_synced_at":"2026-06-08T10:32:24.551Z","repository":{"id":62355037,"uuid":"497353180","full_name":"robertsaupe/php-systeminfo","owner":"robertsaupe","description":"php library to get useful information about the system","archived":false,"fork":false,"pushed_at":"2024-02-21T10:45:27.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-27T21:11:06.448Z","etag":null,"topics":["check","info","information","library","operating-system","operation-system","os","php","php8","server","system"],"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/robertsaupe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"robertsaupe","patreon":"robertsaupe","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.com/donate?hosted_button_id=SQMRNY8YVPCZQ","https://www.amazon.de/ref=as_li_ss_tl?ie=UTF8\u0026linkCode=ll2\u0026tag=robertsaupe-21\u0026linkId=b79bc86cee906816af515980cb1db95e\u0026language=de_DE"]}},"created_at":"2022-05-28T15:15:57.000Z","updated_at":"2025-05-04T13:46:53.000Z","dependencies_parsed_at":"2025-03-04T08:39:02.784Z","dependency_job_id":null,"html_url":"https://github.com/robertsaupe/php-systeminfo","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/robertsaupe/php-systeminfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertsaupe%2Fphp-systeminfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertsaupe%2Fphp-systeminfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertsaupe%2Fphp-systeminfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertsaupe%2Fphp-systeminfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertsaupe","download_url":"https://codeload.github.com/robertsaupe/php-systeminfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertsaupe%2Fphp-systeminfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34059154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["check","info","information","library","operating-system","operation-system","os","php","php8","server","system"],"created_at":"2024-11-14T18:07:50.421Z","updated_at":"2026-06-08T10:32:24.530Z","avatar_url":"https://github.com/robertsaupe.png","language":"PHP","funding_links":["https://github.com/sponsors/robertsaupe","https://patreon.com/robertsaupe","https://www.paypal.com/donate?hosted_button_id=SQMRNY8YVPCZQ","https://www.amazon.de/ref=as_li_ss_tl?ie=UTF8\u0026linkCode=ll2\u0026tag=robertsaupe-21\u0026linkId=b79bc86cee906816af515980cb1db95e\u0026language=de_DE","https://www.patreon.com/robertsaupe"],"categories":[],"sub_categories":[],"readme":"# php-systeminfo\n\n[![Minimum PHP version: 8.2](https://img.shields.io/badge/php-8.2%2B-blue.svg?color=blue\u0026style=for-the-badge)](https://packagist.org/packages/robertsaupe/php-systeminfo)\n[![Packagist Version](https://img.shields.io/packagist/v/robertsaupe/php-systeminfo?color=blue\u0026style=for-the-badge)](https://packagist.org/packages/robertsaupe/php-systeminfo)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/robertsaupe/php-systeminfo?color=blue\u0026style=for-the-badge)](https://packagist.org/packages/robertsaupe/php-systeminfo)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](LICENSE)\n\nphp library to get useful information about the system\n\n## Supporting\n\n[GitHub](https://github.com/sponsors/robertsaupe) |\n[Patreon](https://www.patreon.com/robertsaupe) |\n[PayPal](https://www.paypal.com/donate?hosted_button_id=SQMRNY8YVPCZQ) |\n[Amazon](https://www.amazon.de/ref=as_li_ss_tl?ie=UTF8\u0026linkCode=ll2\u0026tag=robertsaupe-21\u0026linkId=b79bc86cee906816af515980cb1db95e\u0026language=de_DE)\n\n## Installing\n\n```sh\ncomposer require robertsaupe/php-systeminfo\n```\n\n## Getting started\n\n### Check\n\n```php\nuse robertsaupe\\SystemInfo\\Check;\n\nvar_dump(Check::isSSL());\n\nvar_dump(Check::isText('abc'));\nvar_dump(Check::isText('abc@example.com'));\n\nvar_dump(Check::isMail('abc'));\nvar_dump(Check::isMail('abc@example.com'));\n\nvar_dump(Check::isCli());\n\nvar_dump(Check::execAvailable());\nvar_dump(Check::shellexecAvailable());\nvar_dump(Check::popenAvailable());\n\nvar_dump(Check::programAvailable('dd'));\nvar_dump(Check::programAvailable('programNotExists'));\n\nvar_dump(Check::extensionAvailable('json'));\nvar_dump(Check::extensionAvailable('extensionNotExists'));\n\ninclude_once('test/res/Interface.php');\ninclude_once('test/res/Class.php');\nvar_dump(Check::classImplements('Test', 'iTest'));\nvar_dump(Check::classImplements('Test', 'iTestNotExists'));\n```\n\n### Info\n\n```php\nuse robertsaupe\\SystemInfo\\Info;\n\nvar_dump(Info::getTotalSpace());\nvar_dump(Info::decodeSizeBinary(Info::getTotalSpace()));\nvar_dump(Info::decodeSizeDecimal(Info::getTotalSpace()));\n\nvar_dump(Info::getFreeSpace());\nvar_dump(Info::decodeSizeBinary(Info::getFreeSpace()));\nvar_dump(Info::decodeSizeDecimal(Info::getFreeSpace()));\n\nvar_dump(Info::getUsedSpace());\nvar_dump(Info::decodeSizeBinary(Info::getUsedSpace()));\nvar_dump(Info::decodeSizeDecimal(Info::getUsedSpace()));\n\nvar_dump(Info::getDirectorySize());\nvar_dump(Info::decodeSizeBinary(Info::getDirectorySize()));\nvar_dump(Info::decodeSizeDecimal(Info::getDirectorySize()));\n\nvar_dump(Info::getDirectorySizeExec());\nvar_dump(Info::decodeSizeBinary(Info::getDirectorySizeExec()));\nvar_dump(Info::decodeSizeDecimal(Info::getDirectorySizeExec()));\n\nvar_dump(Info::getDirectorySizeNative());\nvar_dump(Info::decodeSizeBinary(Info::getDirectorySizeNative()));\nvar_dump(Info::decodeSizeDecimal(Info::getDirectorySizeNative()));\n\nvar_dump(Info::getProcessUserID());\nvar_dump(Info::getProcessUserName());\n\nprint_r(Info::getEnv());\n\nprint_r(Info::getEnvironment());\n\nprint_r(Info::phpInfo());\n\nprint_r(Info::phpInfoExec());\n```\n\n### OS\n\n```php\nuse robertsaupe\\SystemInfo\\OS;\n\nvar_dump(OS::getFamily());\nvar_dump(OS::getType());\n\nvar_dump(OS::getInfo());\nvar_dump(OS::getHostName());\nvar_dump(OS::getOSName());\nvar_dump(OS::getReleaseName());\nvar_dump(OS::getVersion());\nvar_dump(OS::getMachineType());\n\nvar_dump(OS::getLinuxInfo());\n```\n\n## Credits\n\n- Ahmad \u003chttps://stackoverflow.com/a/42397673\u003e for getOSInformation(), which is used as OS::getLinuxInfo()\n\n## History\n\n- some parts was originally written in 2018\n- complete rewritten and published in 2022\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertsaupe%2Fphp-systeminfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertsaupe%2Fphp-systeminfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertsaupe%2Fphp-systeminfo/lists"}