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

3917d 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

[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[prgayman/laravel-zatca

Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing

2926.9k1](/packages/prgayman-laravel-zatca)[ducks-project/spl-types

Polyfill Module for SplType PHP extension. This extension aims at helping people making PHP a stronger typed language and can be a good alternative to scalar type hinting. It provides different typehandling classes as such as integer, float, bool, enum and string

1032.4k](/packages/ducks-project-spl-types)

PHPackages © 2026

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