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

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

tarohida/php-types
==================

PHP types to extend primitives. Positive Number, Positive Number With zero, Not Empty String

v2.0.0(4y ago)0792MITPHP

Since Jan 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tarohida/php-types)[ Packagist](https://packagist.org/packages/tarohida/php-types)[ RSS](/packages/tarohida-php-types/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (2)

php-types
=========

[](#php-types)

How to install
--------------

[](#how-to-install)

`compose require tarohida/php-types:v1.0.0`

How to use
----------

[](#how-to-use)

- construct with not acceptable value, throws `\InvalidArgumentException`
- value was get with `getValue()` method.
- For description, please see `tests/` directory.

Dependency
----------

[](#dependency)

- dependent to [zenexjp/php-types: generic type classes for php 7.3 &amp; above](https://github.com/zenexjp/php-types)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

1570d ago

Major Versions

v1.0.0 → v2.0.02022-01-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/7699412498f9a0b5142cc26a8f79bb838b08de2a83227bca74c5dccc6e1ea961?d=identicon)[tarohida](/maintainers/tarohida)

---

Top Contributors

[![tarohida](https://avatars.githubusercontent.com/u/25278268?v=4)](https://github.com/tarohida "tarohida (19 commits)")

---

Tags

typetypes

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpoption/phpoption

Option Type for PHP

2.7k541.2M159](/packages/phpoption-phpoption)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k27.7M68](/packages/jetbrains-phpstorm-stubs)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49644.8M97](/packages/marc-mabe-php-enum)[symfony/type-info

Extracts PHP types information.

19951.9M114](/packages/symfony-type-info)[consistence/consistence

Consistence - consistent approach and additions to PHP's functionality

1831.1M18](/packages/consistence-consistence)[pinkary-project/type-guard

Type Guard module is part of the Pinkary Project, and allows you to \*\*narrow down the type\*\* of a variable to a more specific type.

198102.4k14](/packages/pinkary-project-type-guard)

PHPackages © 2026

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