sofiakb/os-detector

A library to detect OS

v0.0.2 2021-07-07 00:00 UTC

This package is auto-updated.

Last update: 2024-05-07 16:29:30 UTC


README

Contributors Forks Stargazers Issues MIT License


os-detector

A PHP Library for detect OS System !


Report Bug · Request Feature

Table of Contents
  1. About the library
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

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.