# 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.

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.

- Made by: [Reymart Calicdan](https://github.com/rcalicdan)
- Shipped: 08/08/2026
- Date from: [release](https://github.com/typephp-php/typephp/releases/tag/v0.1.0)
- Source: [github.com/typephp-php/typephp](https://github.com/typephp-php/typephp)
- Docs: [typephp.dev](https://typephp.dev/)
- Install: `composer require typephp/typephp`
- Licence: MIT
- Stack: plain PHP
- Topics: Developer tools
- Checked: 30/10/2026
- Added: 31/10/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/typephp/)
```

See more at [phplives.dev](https://phplives.dev)
