datasift / os
Installs: 31 003
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 48
Forks: 3
Open Issues: 1
Requires (Dev)
This package is not auto-updated.
Last update: 2023-12-05 00:36:36 UTC
README
require_once 'vendor/autoload.php'; // Specify which version you want //$os = Datasift\Os::getOs("Ubuntu", "12.10"); // Or, autodetect $os = Datasift\Os::getOs(); // Show what version we're currently running echo "Currently running: ". $os->getName()." ".$os->getVersion().PHP_EOL; echo PHP_EOL; // Run a command echo $os->runCommand("ls -l"); echo PHP_EOL; // Possible class names var_dump($os->getPossibleClassNames()); // Dump out the class so that we can see if it's a specialist class or a base one var_dump($os);