PHPackages                             cosninix/cos - 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. cosninix/cos

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

cosninix/cos
============

Very legacy collection of various utility functions

v0.0.07(2y ago)02.6kMITPHPPHP ^7|^8

Since Aug 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rvwoens/cos)[ Packagist](https://packagist.org/packages/cosninix/cos)[ RSS](/packages/cosninix-cos/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

Cos - Very legacy collection of various utility functions
=========================================================

[](#cos---very-legacy-collection-of-various-utility-functions)

[![GitHub Release](https://camo.githubusercontent.com/b2da30b401ccd1343807f74ac563f503b3de72b5baf2ef8313ddd3ecb0c1295b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f7276776f656e732f636f732e7376673f7374796c653d666c6174)](//packagist.org/packages/cosninix/cos)[![GitHub Release](https://camo.githubusercontent.com/ca832a5480316f5021d65d0c77ee119fcf52f8ba27470d4bae84ce1c9d2c0c55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f736e696e69782f636f732e7376673f7374796c653d666c6174)](//packagist.org/packages/cosninix/cos)[![Total Downloads](https://camo.githubusercontent.com/c68cc03eaf4af5fd193ae90d97b4b347f356b23d6aae24f63dce47555c0ce466/68747470733a2f2f706f7365722e707567782e6f72672f636f736e696e69782f636f732f646f776e6c6f616473)](//packagist.org/packages/cosninix/cos)[![Last commit](https://camo.githubusercontent.com/fb306c98662275c71804388b4a63b286715ace9006bca4f869afa3ab5a044a47/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f7276776f656e732f636f73)](https://github.com/rvwoens/cos)[![Status](https://camo.githubusercontent.com/9b5975879393da9edeac3c8d738e3409bdd793d14f99360c1af30f3f8805499d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d6c65676163792d726564)](https://github.com/rvwoens/cos)[![License](https://camo.githubusercontent.com/3e99107cd9a8d65dfe2b4b2bbac7eaba1c7c6e6b4bbe09f152bff1bff4d7c90e/68747470733a2f2f706f7365722e707567782e6f72672f636f736e696e69782f636f732f6c6963656e7365)](//packagist.org/packages/cosninix/cos)[![Actions Status](https://github.com/rvwoens/cos/workflows/Build/badge.svg)](https://github.com/rvwoens/cos/actions)

Why? [![start with why](https://camo.githubusercontent.com/340757f8f825b91a83ebb088fbed9d34e7cbc1db10f1541d748a7871f213b1d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617274253230776974682d7768792533462d627269676874677265656e2e7376673f7374796c653d666c6174)](http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#why-)

Cos goes way back to the 80's when it was called coslib and written in C. It was converted into PHP 3 somewhere in the 90's, then it turned into a class with static methods in the 2000's (PHP 4), and survives now on PHP 7 just because so much (legacy) code still depends on it. It contains various obsolete functions that are now replaced by language constructs, like Cos::ifset() that is now replaced bij the ?? operator in PHP 7.

Don't use it in new projects but still fun to use as a time machine into the 80's

#### Installation

[](#installation)

```
    composer install cosninix/cos

```

#### Docs

[](#docs)

As Boele used to say: No need for documentation because a good developer should be able to read code.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Recently: every ~255 days

Total

6

Last Release

1082d ago

PHP version history (2 changes)v0.0.02PHP ^7.0.0

v0.0.07PHP ^7|^8

### Community

Maintainers

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

---

Top Contributors

[![rvwoens](https://avatars.githubusercontent.com/u/97624?v=4)](https://github.com/rvwoens "rvwoens (9 commits)")

---

Tags

librarylegacy

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/cosninix-cos/health.svg)

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[spinen/laravel-geometry

Wrapper over the geoPHP Class to make it integrate with Laravel better.

42470.7k1](/packages/spinen-laravel-geometry)[cybercog/laravel-paket

Composer personal web interface. Manage Laravel dependencies without switching to command line!

1753.3k](/packages/cybercog-laravel-paket)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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