Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubawerlos/types-checker
A tool to find missing type declarations in PHP 7 code
https://github.com/kubawerlos/types-checker
Last synced: 2 months ago
JSON representation
A tool to find missing type declarations in PHP 7 code
- Host: GitHub
- URL: https://github.com/kubawerlos/types-checker
- Owner: kubawerlos
- License: mit
- Created: 2016-12-04T11:16:39.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T22:07:22.000Z (over 1 year ago)
- Last Synced: 2024-10-14T11:09:23.565Z (3 months ago)
- Language: PHP
- Size: 488 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Types checker
[![Latest Stable Version](https://img.shields.io/packagist/v/kubawerlos/types-checker.svg)](https://packagist.org/packages/kubawerlos/types-checker)
[![PHP version](https://img.shields.io/packagist/php-v/kubawerlos/types-checker.svg)](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://img.shields.io/coveralls/github/kubawerlos/types-checker/main.svg)](https://coveralls.io/github/kubawerlos/types-checker?branch=main)
[![Psalm type coverage](https://shepherd.dev/github/kubawerlos/types-checker/coverage.svg)](https://shepherd.dev/github/kubawerlos/types-checker)A tool to find missing type declarations in PHP 7 code.
## Installation
```bash
composer require --dev kubawerlos/types-checker
```## Usage
```bash
vendor/bin/types-checker src tests
```## Configuration
| Option | Description |
| --------------------- | --------------------------------------------- |
| `--autoloader` | Add custom autoloader file |
| `--exclude` | Exclude class, interface or trait from report |
| `--skip-return-types` | Do not report missing return types |## Example
```php