ta-tikoma / phpins
Prevents stupid mistakes in php class
Installs: 80
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ta-tikoma/phpins
Requires (Dev)
- phpunit/phpunit: ^8.2
This package is auto-updated.
Last update: 2025-09-29 02:03:14 UTC
README
#EN
phpins
Prevents stupid mistakes, for example: forgot to specify connection for class
Validators:
IDefinedThisVariable - detected where variable is define INotForgottenAddUseThisClass - detected set "use" for all class in file INotUseCyrillicLetterC - detected cyrillic letter "c" in code
Installation
- Install composer.
- Install
phpins
using below command:
composer global require ta-tikoma/phpins
Use:
phpins -f {file-path}
Example output:
RemoveDownLineIndex.php:
WARNING:RemoveDownLineIndex.php:5:18:Class not use "FormData"
WARNING:RemoveDownLineIndex.php:7:18:Class not use "EntityManagerInterface"
WARNING:RemoveDownLineIndex.php:8:32:Class not use "Auth"