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

[dnoegel/php-xdg-base-dir

implementation of xdg base directory specification for php

6.3k239.4M16](/packages/dnoegel-php-xdg-base-dir)[thiagoalessio/tesseract_ocr

A wrapper to work with Tesseract OCR inside PHP.

3.0k3.3M25](/packages/thiagoalessio-tesseract-ocr)[mark-gerarts/auto-mapper-plus

An AutoMapper for PHP

5623.2M21](/packages/mark-gerarts-auto-mapper-plus)[wamania/php-stemmer

Native PHP Stemmer

1434.0M33](/packages/wamania-php-stemmer)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)

PHPackages © 2026

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