PHPackages                             kubawerlos/types-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kubawerlos/types-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kubawerlos/types-checker
========================

A tool to find missing type declarations in PHP 7 code

v2.2.0(4y ago)643.1k↓43.1%1[1 issues](https://github.com/kubawerlos/types-checker/issues)4MITPHPPHP ^7.2 || ^8.0

Since Dec 5Pushed 3y ago2 watchersCompare

[ Source](https://github.com/kubawerlos/types-checker)[ Packagist](https://packagist.org/packages/kubawerlos/types-checker)[ RSS](/packages/kubawerlos-types-checker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (4)

Types checker
=============

[](#types-checker)

[![Latest Stable Version](https://camo.githubusercontent.com/661a19986325b80e5f2f44b13df105c285ecd9f0e7e3e737a94f0481a3be90ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b7562617765726c6f732f74797065732d636865636b65722e737667)](https://packagist.org/packages/kubawerlos/types-checker)[![PHP version](https://camo.githubusercontent.com/2a358e0e45798363ef72fb7c479c8af793cef4c63d23184c36db38ef9498680a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b7562617765726c6f732f74797065732d636865636b65722e737667)](https://php.net)[![CI Status](https://github.com/kubawerlos/types-checker/workflows/CI/badge.svg?branch=main&event=push)](https://github.com/kubawerlos/types-checker/actions)[![Code coverage](https://camo.githubusercontent.com/e522526edf469e4df3505b62a0ecb61a8aae9615e91e884208620ba738986cde/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f6b7562617765726c6f732f74797065732d636865636b65722f6d61696e2e737667)](https://coveralls.io/github/kubawerlos/types-checker?branch=main)[![Psalm type coverage](https://camo.githubusercontent.com/2243bad29da6db3da2267697ff9bb6ec0d9f1ddfd4d14a87c281a3dfccb7ac32/68747470733a2f2f73686570686572642e6465762f6769746875622f6b7562617765726c6f732f74797065732d636865636b65722f636f7665726167652e737667)](https://shepherd.dev/github/kubawerlos/types-checker)

A tool to find missing type declarations in PHP 7 code.

Installation
------------

[](#installation)

```
composer require --dev kubawerlos/types-checker
```

Usage
-----

[](#usage)

```
vendor/bin/types-checker src tests
```

Configuration
-------------

[](#configuration)

OptionDescription`--autoloader`Add custom autoloader file`--exclude`Exclude class, interface or trait from report`--skip-return-types`Do not report missing return typesExample
-------

[](#example)

```
