phplives.dev

Back to the manifest

plain PHP
Contents

TypePHP

A pure PHP library that checks your PHPDoc types at runtime, including generics and array shapes, with no build step and no C extension.

Shipped

Date from: release

Scan

Parcel details

2026080863

You add it to an existing project with Composer, and it checks the types in your DocBlocks while the code runs. Strict mode throws a TypeError. Audit mode collects every type error into a JSON report without stopping the code.

Install
composer require typephp/typephp
Made by
Licence
MIT
Shipped
Date from
release
Added
Checked

Share this parcelphplives.dev/entries/typephp/

Badge for your README

Listed here? Add this badge to your README.

Featured on phplives.dev badge
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/typephp/)
QR code for this page

Put it on a slide, a poster or a flyer. Scan it with a phone camera to open this page.