PHPackages                             insign/get-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. insign/get-os

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

insign/get-os
=============

Only creates a simple and consistent way to find out what operating system is the current is php running.

v1.0.3(5y ago)23.1k↓15%1WTFPLPHPPHP &gt;=5.3

Since Jan 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/insign/get-os)[ Packagist](https://packagist.org/packages/insign/get-os)[ RSS](/packages/insign-get-os/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (1)

get-os
======

[](#get-os)

Only creates a simple and consistent way to find out what operating system is the current is php running.

- Supports Linux, Mac and Windows

```
// Unknown = 1
// Windows = 2
// Linux = 3
// Mac = 4

echo getOS::ofServer(); // Return a integer
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~701 days

Total

3

Last Release

2012d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/934b53b68624e78343e3f3367897cbaf5fb01475511a1650d2c99c972c810ec6?d=identicon)[insign](/maintainers/insign)

---

Top Contributors

[![insign](https://avatars.githubusercontent.com/u/1113045?v=4)](https://github.com/insign "insign (10 commits)")

---

Tags

php osphp\_unameget operating system

### Embed Badge

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

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

###  Alternatives

[bitgrave/barcode-generator

simple barcode generator base classes supporting 2d- and datamatrix barcodes

1313.7k](/packages/bitgrave-barcode-generator)

PHPackages © 2026

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