PHP code example of brownpaperbag / os
1. Go to this page and download the library: Download brownpaperbag/os 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/ */
brownpaperbag / os example snippets
use BrownPaperBag\OS;
if(OS::isWindows()){
// Do something for Windows...
}
else{ // Doing something for Linux or Mac
if(OS::is32bit()){
// Do something for 32bit processor...
}
else{
// Do something for 64bit processor...
}
}