trovit / php-code-validator
This package is abandoned and no longer maintained.
No replacement package was suggested.
Provides a basic system to organize and execute php code validators
v1.1.3
2017-01-25 17:46 UTC
Requires
- jakub-onderka/php-parallel-lint: ^0.9.2
- squizlabs/php_codesniffer: 3.0.0RC2
- symfony/yaml: ^2.8|^3.1
- trovit/temporary-filesystem: ^1.0
Requires (Dev)
- phpmd/phpmd: ^2.4
- phpro/grumphp: ^0.9.5
- phpunit/phpunit: ^5.5
- sebastian/phpcpd: ^2.0
- sensiolabs/security-checker: ^3.0
This package is not auto-updated.
Last update: 2022-04-02 08:54:47 UTC
README
Provides a basic system to organize and execute php code validators.
There's a Symfony bundle with this component.
Code structure
Create your own Validator
When you need to validate or check your code and the validators provided by this bundle doesn't satisfy your needs (different code language, formats, etc...) there is the possibility to create a new Validator class by implementing the Validator interface (Trovit\PhpCodeValidator\Validators\Validator) and implement its method checkCode
List of available validators
- CodeSnifferValidator: Wrapper of PHP Code Sniffer
- ParallelLintValidator: Wrapper of PHP Parallel Lint