PHPackages                             trentonmaki/primitive-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. trentonmaki/primitive-types

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

trentonmaki/primitive-types
===========================

A library that allows you to type hint primitive types like integers and strings

v1.0.0(10y ago)17MITPHPPHP ^5.5CI failing

Since Aug 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MakiCode/PrimitiveTypes)[ Packagist](https://packagist.org/packages/trentonmaki/primitive-types)[ RSS](/packages/trentonmaki-primitive-types/feed)WikiDiscussions main Synced 1mo ago

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

PrimitiveTypes
==============

[](#primitivetypes)

Strong typing for primitive types in PHP

Usage
=====

[](#usage)

Simply use the class name of the primitive you want to type hint

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3918d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/003e778d56725ae96ef3fe63486ac7dbb7c053070a64eba67c07476567694084?d=identicon)[huulktya](/maintainers/huulktya)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/trentonmaki-primitive-types/health.svg)

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

###  Alternatives

[nowendwell/laravel-terms

A tool for adding terms and conditions to your project

2517.6k](/packages/nowendwell-laravel-terms)[soul/address-parse

收货地址解析，成功率99%以上，支持（身份证号，电话，座机，区号，省市区街道地址)

405.4k](/packages/soul-address-parse)

PHPackages © 2026

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