PHPackages                             tumugin/stannum - 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. tumugin/stannum

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

tumugin/stannum
===============

Stannum makes PHP's scalar types more expressive!

0.6.0(4y ago)18.9k2[1 issues](https://github.com/tumugin/stannum/issues)[6 PRs](https://github.com/tumugin/stannum/pulls)MITPHPPHP &gt;=7.4

Since Jan 30Pushed 2w ago1 watchersCompare

[ Source](https://github.com/tumugin/stannum)[ Packagist](https://packagist.org/packages/tumugin/stannum)[ RSS](/packages/tumugin-stannum/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (4)Versions (15)Used By (0)

Stannum
=======

[](#stannum)

[![phpcs(PSR12)](https://github.com/tumugin/stannum/actions/workflows/phpcs.yml/badge.svg)](https://github.com/tumugin/stannum/actions/workflows/phpcs.yml)[![CI](https://github.com/tumugin/stannum/actions/workflows/phpunit.yml/badge.svg)](https://github.com/tumugin/stannum/actions/workflows/phpunit.yml)[![Coverage Status](https://camo.githubusercontent.com/4893f9f69cd1c944da47d0c4c4d11caee1caaed760258974acb97e5ed5c11107/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74756d7567696e2f7374616e6e756d2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/tumugin/stannum?branch=main)

Stannum makes PHP's scalar types more expressive!

This project is under development. It is not recommended using in production.

Supported environments
======================

[](#supported-environments)

Stannum supports and tested on PHP 7.4 or above.

Currently, Stannum is tested on the CI environment below.

- PHP 7.4/8.0/8.1 on latest Windows
- PHP 7.4/8.0/8.1 on latest Ubuntu(Linux)
- PHP 7.4/8.0/8.1 on latest macOS

How to use
==========

[](#how-to-use)

```
// Will return [1, 3, 5]
SnIntegerList::byIntArray([1, 2, 3, 4, 5, 6])
    ->filter(fn(SnInteger $val) => $val->isOdd())
    ->toIntArray();
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance43

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.2% 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 ~11 days

Total

7

Last Release

1492d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/749197d9f25bf22d5103a5b99a8e8d86c22d9d7fbb1b93fc7e494645d27b6a2b?d=identicon)[tumugin](/maintainers/tumugin)

---

Top Contributors

[![tumugin](https://avatars.githubusercontent.com/u/1785179?v=4)](https://github.com/tumugin "tumugin (168 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (3 commits)")

---

Tags

php

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tumugin-stannum/health.svg)

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

###  Alternatives

[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9201.2M45](/packages/morilog-jalali)[bruli/php-git-hooks

Git hooks for PHP projects.

675370.8k5](/packages/bruli-php-git-hooks)[nikolaposa/version

Value Object that represents a SemVer-compliant version number.

1406.4M16](/packages/nikolaposa-version)[prooph/common

Common classes used across prooph packages

852.2M27](/packages/prooph-common)[funeralzone/valueobjects

A PHP 7.1 value objects helper library.

66643.3k22](/packages/funeralzone-valueobjects)[tomasnorre/crawler

Crawler extension for TYPO3

58397.5k1](/packages/tomasnorre-crawler)

PHPackages © 2026

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