PHPackages                             marcosh/php-type-checker - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. marcosh/php-type-checker

AbandonedLibrary[Validation &amp; Sanitization](/categories/validation)

marcosh/php-type-checker
========================

Checks if type hints are present and coherent with doc block declarations

0.2.0(9y ago)2427MITPHPPHP ^7.1

Since Apr 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/marcosh/php-type-checker)[ Packagist](https://packagist.org/packages/marcosh/php-type-checker)[ RSS](/packages/marcosh-php-type-checker/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Php type checker
================

[](#php-type-checker)

[![Build Status](https://camo.githubusercontent.com/123c597f1914663274b8dfed2858e9a6b6ac81e3881025a9bac82f6feedc2846/68747470733a2f2f7472617669732d63692e6f72672f6d6172636f73682f7068702d747970652d636865636b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/marcosh/php-type-checker)[![Latest Stable Version](https://camo.githubusercontent.com/f7bec2cc856f3a949bd4c89d9f234e150736ec7d0f3f1eea0e1e08193da01ebc/68747470733a2f2f706f7365722e707567782e6f72672f6d6172636f73682f7068702d747970652d636865636b65722f762f737461626c65)](https://packagist.org/packages/marcosh/php-type-checker)[![Code Climate](https://camo.githubusercontent.com/b0d9b069e7c498d671b24051cb1765d0457a844371640cb69441e228e01e1de5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d6172636f73682f7068702d747970652d636865636b65722f6261646765732f6770612e737667)](https://codeclimate.com/github/marcosh/php-type-checker)[![Coverage Status](https://camo.githubusercontent.com/8fba67259c3072c8d862e09c6fdd9a917ca5298fd0b1bcfac6bbc81b88d344bc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6172636f73682f7068702d747970652d636865636b65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/marcosh/php-type-checker?branch=master)[![Code Quality](https://camo.githubusercontent.com/ed8d0935c891e70f13a62f4fc6916f27ed2182ff14ce9dc031f5598ad22305ed/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f67726164652f6666393563336535333630363439363338633631663238333462666664386232)](https://www.codacy.com/app/marcosh/php-type-checker/dashboard)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9b6a4afd3d23489fca1ea9db1490b828ab5a1110cd99291a65c291ad6e683150/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6172636f73682f7068702d747970652d636865636b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/marcosh/php-type-checker/?branch=master)

Checks if type hints are present and coherent with doc block declarations

Install
-------

[](#install)

Install using [Composer](https://getcomposer.org) with

```
composer require marcosh/php-type-checker

```

Usage
-----

[](#usage)

To scan the content of a directory `$PATH`,

```
vendor/bin/ptc check $PATH

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

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

Every ~8 days

Total

6

Last Release

3327d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2643972?v=4)[Marco Perone](/maintainers/marcosh)[@marcosh](https://github.com/marcosh)

---

Tags

phptypes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marcosh-php-type-checker/health.svg)

```
[![Health](https://phpackages.com/badges/marcosh-php-type-checker/health.svg)](https://phpackages.com/packages/marcosh-php-type-checker)
```

PHPackages © 2026

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