{"id":28458116,"url":"https://github.com/jolicode/php-os-helper","last_synced_at":"2025-08-15T15:13:41.716Z","repository":{"id":210069306,"uuid":"725633764","full_name":"jolicode/php-os-helper","owner":"jolicode","description":"Provides helpers to detect OS of the machine where PHP is running.","archived":false,"fork":false,"pushed_at":"2025-02-12T15:52:35.000Z","size":32,"stargazers_count":18,"open_issues_count":0,"forks_count":3,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-06-07T00:09:43.592Z","etag":null,"topics":["detection","linux","os","osx","php","utility","windows"],"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/jolicode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-11-30T14:56:09.000Z","updated_at":"2025-04-09T18:21:24.000Z","dependencies_parsed_at":"2025-02-12T16:31:52.324Z","dependency_job_id":"c0a95d02-36ad-452b-8d77-8698e120cd46","html_url":"https://github.com/jolicode/php-os-helper","commit_stats":null,"previous_names":["jolicode/php-os-helper"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jolicode/php-os-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolicode%2Fphp-os-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolicode%2Fphp-os-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolicode%2Fphp-os-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolicode%2Fphp-os-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jolicode","download_url":"https://codeload.github.com/jolicode/php-os-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolicode%2Fphp-os-helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263081346,"owners_count":23410862,"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":["detection","linux","os","osx","php","utility","windows"],"created_at":"2025-06-07T00:09:50.183Z","updated_at":"2025-07-02T05:31:39.505Z","avatar_url":"https://github.com/jolicode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP OS Helper\n\nThis library provides some helpers to detect OS of the machine where PHP is running.\n\n## Installation\n\n```bash\n$ composer require jolicode/php-os-helper\n```\n\n## Usage\n\n```php\n\u003c?php\n\nuse JoliCode\\PhpOsHelper\\OsHelper;\n\nOsHelper::isUnix(); // true or false\nOsHelper::isWindows(); // true or false\nOsHelper::isWindowsSeven(); // true or false\nOsHelper::isWindowsEightOrHigher(); // true or false\nOsHelper::isWindowsSubsystemForLinux(); // true or false\nOsHelper::isMacOs(); // true or false\nOsHelper::isDocker(); // true or false\nOsHelper::getMacOSVersion(); // 10.15.7\n```\n\n## Notes\n\nThis package contains helpers extracted from https://github.com/jolicode/JoliNotif\nto make them standalone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjolicode%2Fphp-os-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjolicode%2Fphp-os-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjolicode%2Fphp-os-helper/lists"}