sofiakb / os-detector
A library to detect OS
v0.0.2
2021-07-07 00:00 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
README
os-detector
A PHP Library for detect OS System !
Report Bug
ยท
Request Feature
Table of Contents
About The Library
The library allows to detect os system in PHP project.
Built With
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
Prerequisites
- php >= 7.4
Installation
composer require sofiakb/os-detector
Usage
use Sofiakb\DetectOS\System; // Get os with $os = System::getOS(); // Verify os with System::isLinux(); System::isMac(); System::isWindows();
Roadmap
See the open issues for a list of proposed features (and known issues).
License
Distributed under the MIT License. See LICENSE
for more information.