PHPackages                             subjective-php/spl-types - 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. subjective-php/spl-types

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

subjective-php/spl-types
========================

A collection of classes which provide various typehandling.

v3.0.0(7y ago)013511MITPHPPHP ^7.0

Since Jul 22Pushed 7y agoCompare

[ Source](https://github.com/subjective-php/spl-types)[ Packagist](https://packagist.org/packages/subjective-php/spl-types)[ RSS](/packages/subjective-php-spl-types/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (1)

SubjectivePHP\\Spl\\Types
=========================

[](#subjectivephpspltypes)

[![Build Status](https://camo.githubusercontent.com/648b8e795a2b8688a4cfe43557ae22b027d9e5a69cfb3ebf645322c6f3feafb7/68747470733a2f2f7472617669732d63692e6f72672f7375626a6563746976652d7068702f73706c2d74797065732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/subjective-php/spl-types)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e1aa4284b9d24f3a09c7fb3c94b97829d39d6f04c791e6454ed6b75bd22e94be/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7375626a6563746976652d7068702f73706c2d74797065732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/subjective-php/spl-types/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/8ed33a44ca2173a838f8324b829e6d0da80ef4693a3c7b061c3b0331a4e76355/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7375626a6563746976652d7068702f73706c2d74797065732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/subjective-php/spl-types?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/2064ce94e361794de43f39b3b9ac3c5ad8fb6db4f62e9ef4ec977eb91868f412/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f73706c2d74797065732f762f737461626c65)](https://packagist.org/packages/subjective-php/spl-types)[![Latest Unstable Version](https://camo.githubusercontent.com/8a8c9840f4bed13de0969ce3d152e73bc78c6ef0ddfc56c7b9a18b4b01e2c8b9/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f73706c2d74797065732f762f756e737461626c65)](https://packagist.org/packages/subjective-php/spl-types)[![License](https://camo.githubusercontent.com/bfa741f27f26b801b3de3c7d9b4aa1e7f623210bca04b0bfa317cf17745d6e4d/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f73706c2d74797065732f6c6963656e7365)](https://packagist.org/packages/subjective-php/spl-types)

[![Total Downloads](https://camo.githubusercontent.com/a0e519f33b7aa2b076b7f7e6c9ad7f9942e4b4f794bae8d812d3ecefa7ddd36d/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f73706c2d74797065732f646f776e6c6f616473)](https://packagist.org/packages/subjective-php/spl-types)[![Daily Downloads](https://camo.githubusercontent.com/619bf4771182de8912b5107fbabb8a39a3c1d3deb16aa327abfa3158eb12e02e/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f73706c2d74797065732f642f6461696c79)](https://packagist.org/packages/subjective-php/spl-types)[![Monthly Downloads](https://camo.githubusercontent.com/9e2feacbb3a244980e8612cd9590512c0bcde418af70fbbcad0a9d65501aa450/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f73706c2d74797065732f642f6d6f6e74686c79)](https://packagist.org/packages/subjective-php/spl-types)

[![Documentation](https://camo.githubusercontent.com/a5445bbf0a3a04a2ec4db113f8a4ada4e12b57d9b2de32d936fa17800bc9ca6e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7265666572656e63652d706870646f632d626c75652e7376673f7374796c653d666c6174)](http://www.pholiophp.org/subjective-php/spl-types)

A collection of classes which provide various typehandling.

Requirements
------------

[](#requirements)

Chadicus\\Spl\\DataStructures requires PHP 7.0 (or later).

Composer
--------

[](#composer)

To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `subjective-php/spl-types` to your project's `composer.json` file such as:

```
composer require subjective-php/spl-types
```

Contact
-------

[](#contact)

Developers may be contacted at:

- [Pull Requests](https://github.com/subjective-php/spl-types/pulls)
- [Issues](https://github.com/subjective-php/spl-types/issues)

Project Build
-------------

[](#project-build)

With a checkout of the code get [Composer](http://getcomposer.org) in your PATH and run:

```
composer install
./vendor/bin/phpunit
./vendor/bin/phpcs
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

2905d ago

Major Versions

v0.1.0 → v1.0.02015-09-15

v1.0.1 → v2.0.02018-03-16

v2.0.0 → v3.0.02018-06-03

PHP version history (2 changes)v0.1.0PHP ~5.4 || ~7.0

v2.0.0PHP ^7.0

### Community

Maintainers

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

---

Top Contributors

[![chadicus](https://avatars.githubusercontent.com/u/1182337?v=4)](https://github.com/chadicus "chadicus (40 commits)")

---

Tags

enumspltypes

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/subjective-php-spl-types/health.svg)

```
[![Health](https://phpackages.com/badges/subjective-php-spl-types/health.svg)](https://phpackages.com/packages/subjective-php-spl-types)
```

###  Alternatives

[myclabs/php-enum

PHP Enum implementation

2.7k227.9M637](/packages/myclabs-php-enum)[dasprid/enum

PHP 7.1 enum implementation

379146.0M11](/packages/dasprid-enum)[spatie/enum

PHP Enums

84429.1M68](/packages/spatie-enum)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49444.8M97](/packages/marc-mabe-php-enum)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[consistence/consistence

Consistence - consistent approach and additions to PHP's functionality

1831.1M18](/packages/consistence-consistence)

PHPackages © 2026

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