PHPackages                             datasift/os - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. datasift/os

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

datasift/os
===========

0.1.3(10y ago)231.2k↓92.3%2[1 PRs](https://github.com/datasift/os-php/pulls)1PHP

Since Aug 9Pushed 10y agoCompare

[ Source](https://github.com/datasift/os-php)[ Packagist](https://packagist.org/packages/datasift/os)[ RSS](/packages/datasift-os/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (6)Used By (1)

Usage
=====

[](#usage)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~296 days

Total

4

Last Release

3822d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dc3934d5c3ce55e18dca95d52b564fb2a34986770af3c532dba6c248ef58f3a?d=identicon)[stuartherbert](/maintainers/stuartherbert)

![](https://www.gravatar.com/avatar/a12d320566b358e14f24f10a52d0f74344434c46d0e27373f4ed0f83e7d8885b?d=identicon)[datasift](/maintainers/datasift)

---

Top Contributors

[![mheap](https://avatars.githubusercontent.com/u/59130?v=4)](https://github.com/mheap "mheap (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/datasift-os/health.svg)

```
[![Health](https://phpackages.com/badges/datasift-os/health.svg)](https://phpackages.com/packages/datasift-os)
```

###  Alternatives

[zhuzhichao/ip-location-zh

get the ip's location info with Chinese

632217.2k15](/packages/zhuzhichao-ip-location-zh)[spatie/array-functions

Some handy array helpers

24866.2k2](/packages/spatie-array-functions)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
