PHPackages                             haeckel/type\_wrapper - 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. haeckel/type\_wrapper

ActiveLibrary

haeckel/type\_wrapper
=====================

Simple Library, that provides wrappers around scalar types and arrays. They are inspired by the builtin phpDoc-Types of phpstan, bringing static analysis of phpstan and runtime safety in one.

2.0.0(5mo ago)017LGPL-3.0-or-laterPHPPHP ^8.1CI passing

Since Dec 9Pushed 5mo agoCompare

[ Source](https://github.com/dhaeckel/php-type-wrapper)[ Packagist](https://packagist.org/packages/haeckel/type_wrapper)[ RSS](/packages/haeckel-type-wrapper/feed)WikiDiscussions main Synced 1mo ago

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

[![Static Badge](https://camo.githubusercontent.com/14995ff65edea59395c224e37e4fc66f91c1e601c1a58311e3c6f38c4fe37feb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c2532306d61782d627269676874677265656e)](phpstan.dist.neon)[![Static Badge](https://camo.githubusercontent.com/b4dd7de37447bf201a1b6bfa4758fb5e24cbf79eb4f9c412a7705ec1b17315bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d7374726963745f72756c65732d627269676874677265656e)](https://camo.githubusercontent.com/b4dd7de37447bf201a1b6bfa4758fb5e24cbf79eb4f9c412a7705ec1b17315bf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d7374726963745f72756c65732d627269676874677265656e)[![Packagist License](https://camo.githubusercontent.com/4267759d84d117c575a7792c59bba41f1dc43f40473744cc2cebe241fa99b723/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f686165636b656c2f747970655f77726170706572)](https://camo.githubusercontent.com/4267759d84d117c575a7792c59bba41f1dc43f40473744cc2cebe241fa99b723/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f686165636b656c2f747970655f77726170706572)

Haeckel/php-type-wrapper
========================

[](#haeckelphp-type-wrapper)

Simple Library, that provides wrappers around scalar types and arrays. They are inspired by the builtin phpDoc-Types of phpstan, bringing static analysis of phpstan and runtime safety in one.

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

[](#installation)

Install the package vai composer by running:

```
composer require haeckel/type_wrapper
```

Contribute
----------

[](#contribute)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

[Source Code](https://github.com/dhaeckel/php-wrapper)

Support
-------

[](#support)

Let us know if you have issues.

[Issue Tracker](https://github.com/dhaeckel/php-type-wrapper/issues)

License
-------

[](#license)

[LGPL-3.0-or-later](COPYING.LESSER)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance73

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Total

4

Last Release

153d ago

Major Versions

1.1 → 2.0.02025-12-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/86be890d6b82e0a0048eeebc88672c30efa3ddc68982adfde0b54d8230d763dc?d=identicon)[dhaeckel](/maintainers/dhaeckel)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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