PHPackages                             sebastian/type - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sebastian/type

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sebastian/type
==============

Collection of value objects that represent the types of the PHP type system

7.0.0(3mo ago)1.5k620.7M—6.6%13[2 issues](https://github.com/sebastianbergmann/type/issues)[2 PRs](https://github.com/sebastianbergmann/type/pulls)20BSD-3-ClausePHPPHP &gt;=8.4CI passing

Since Jun 6Pushed today4 watchersCompare

[ Source](https://github.com/sebastianbergmann/type)[ Packagist](https://packagist.org/packages/sebastian/type)[ Docs](https://github.com/sebastianbergmann/type)[ GitHub Sponsors](https://github.com/sebastianbergmann)[ Fund](https://liberapay.com/sebastianbergmann)[ RSS](/packages/sebastian-type/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (39)Used By (20)

[![Latest Stable Version](https://camo.githubusercontent.com/87f01f2b5d038b34157178e0f95bf1cc86b9c6e3546e0d5c8e8f10c5ce12c314/68747470733a2f2f706f7365722e707567782e6f72672f73656261737469616e2f747970652f76)](https://packagist.org/packages/sebastian/type)[![CI Status](https://github.com/sebastianbergmann/type/workflows/CI/badge.svg)](https://github.com/sebastianbergmann/type/actions)[![codecov](https://camo.githubusercontent.com/5bd78badf95decb58cf1fa64ba97b947452636595fa4eb88e044c9e67435ca39/68747470733a2f2f636f6465636f762e696f2f67682f73656261737469616e626572676d616e6e2f747970652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sebastianbergmann/type)

sebastian/type
==============

[](#sebastiantype)

Collection of value objects that represent the types of the PHP type system.

Installation
------------

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require sebastian/type

```

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

```
composer require --dev sebastian/type

```

###  Health Score

78

↑

ExcellentBetter than 100% of packages

Maintenance92

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community32

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96.7% 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 ~65 days

Recently: every ~45 days

Total

38

Last Release

102d ago

Major Versions

5.1.2 → 6.0.22025-03-18

5.1.3 → 6.0.32025-08-09

4.0.x-dev → 5.1.x-dev2025-09-26

5.1.x-dev → 6.0.x-dev2025-12-31

6.0.x-dev → 7.0.02026-02-06

PHP version history (9 changes)1.0.0PHP ^7.2

2.0.0PHP ^7.3

2.1.1PHP ^7.3 || ^8.0

2.2.2PHP &gt;=7.3

1.1.4PHP &gt;=7.2

4.0.0PHP &gt;=8.1

5.0.0PHP &gt;=8.2

6.0.0PHP &gt;=8.3

7.0.0PHP &gt;=8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1089?v=4)[Sebastian Probst Eide](/maintainers/sebastian)[@sebastian](https://github.com/sebastian)

---

Top Contributors

[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (595 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (9 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (4 commits)")[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (2 commits)")[![alexislefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexislefebvre "alexislefebvre (1 commits)")[![simPod](https://avatars.githubusercontent.com/u/327717?v=4)](https://github.com/simPod "simPod (1 commits)")[![davidbyoung](https://avatars.githubusercontent.com/u/6652430?v=4)](https://github.com/davidbyoung "davidbyoung (1 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![jurchiks](https://avatars.githubusercontent.com/u/542788?v=4)](https://github.com/jurchiks "jurchiks (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sebastian-type/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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