Package to detect server operating system and its data-path width processor.

1.0.0 2014-11-05 01:31 UTC

This package is not auto-updated.

Last update: 2024-04-23 00:58:36 UTC


README

Package to detect server operating system and its data-path width processor.

<?php

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...

    }

}

License

MIT