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

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 9

Forks: 0

Open Issues: 0

pkg:composer/brownpaperbag/os

1.0.0 2014-11-05 01:31 UTC

This package is not auto-updated.

Last update: 2025-10-07 08:24:54 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