PHP code example of jolicode / php-os-helper

1. Go to this page and download the library: Download jolicode/php-os-helper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jolicode / php-os-helper example snippets




use JoliCode\PhpOsHelper\OsHelper;

OsHelper::isUnix(); // true or false
OsHelper::isWindows(); // true or false
OsHelper::isWindowsSeven(); // true or false
OsHelper::isWindowsEightOrHigher(); // true or false
OsHelper::isWindowsSubsystemForLinux(); // true or false
OsHelper::isMacOs(); // true or false
OsHelper::isDocker(); // true or false
OsHelper::getMacOSVersion(); // 10.15.7
bash
$ composer