This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.1.3) of this package.

Maintainers

Package info

github.com/datasift/os-php

pkg:composer/datasift/os

Statistics

Installs: 31 153

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 1

0.1.3 2016-01-15 15:35 UTC

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);