Recommend this page to a friend! |
Classes of Adeleye Ayodeji | Nolimitbuzz WP Theme | vendor/php-parallel-lint/php-parallel-lint/README.md | Download |
|
![]() PHP Parallel LintThis application checks the syntax of PHP files in parallel.
It can output in plain text, colored text, json and checksyntax formats.
Additionally Running parallel jobs in PHP is inspired by Nette framework tests. The application is officially supported for use with PHP 5.3 to 8.3. Table of contents
InstallationInstall with
Alternatively you can install as a standalone
For colored output, install the suggested package
Since v1.3.0, a PHAR file is also made available for each release. This PHAR file is published as an asset for each release and can be found on the Releases page. Example outputHistoryThis project was originally created by [@JakubOnderka] and released as [jakub-onderka/php-parallel-lint]. Since then, Jakub has moved on to other interests and as of January 2020, the second most active maintainer [@grogy] has taken over maintenance of the project and given the project - and related dependencies - a new home in the PHP Parallel Lint organisation. It is strongly recommended for existing users of the (unmaintained) [jakub-onderka/php-parallel-lint] package to switch their dependency to [php-parallel-lint/php-parallel-lint], see How to upgrade below. [php-parallel-lint/php-parallel-lint]: https://github.com/php-parallel-lint/PHP-Parallel-Lint [grogy/php-parallel-lint]: https://github.com/grogy/PHP-Parallel-Lint [jakub-onderka/php-parallel-lint]: https://github.com/JakubOnderka/PHP-Parallel-Lint [@JakubOnderka]: https://github.com/JakubOnderka [@grogy]: https://github.com/grogy Command line options
Recommended excludes for Symfony frameworkTo run from the command line:
Excluding files from a scan based on the PHP version usedSometimes a particular file in a project may not comply with the project-wide minimum PHP version, like a file which is conditionally included in the project and contains PHP syntax which needs a higher PHP version to run. This can make it complicated to run Parallel Lint in a CI context, as the PHP Parallel Lint offers a straight-forward way around this, as files can define their own minimum PHP version like so:
With this comment in place, the file will be automatically skipped when PHP Parallel Lint is run on a PHP version lower than PHP 7.4. Note: The How to upgradeAre you using the
|