Download the PHP package prestashop/php-coding-standards without Composer
On this page you can find all versions of the php package prestashop/php-coding-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download prestashop/php-coding-standards
More information about prestashop/php-coding-standards
Files in prestashop/php-coding-standards
Package php-coding-standards
Short Description PrestaShop coding standards
License MIT
Informations about the package php-coding-standards
PrestaShop Coding Standards
This repository includes tools to check that repositories are following the standards defined by the PrestaShop community and provides configuration files for some of them.
Related packages:
Installation
When this project is successfully added to your dependencies, you can enable each review tool on your projet.
Version Guidance
Version | Status | Packagist - | Namespace | Repo | Docs | PHP Version |
---|---|---|---|---|---|---|
1.x | EOL | prestashop/php-dev-tools |
N/A | v1.x | N/A | >=5.6,<7.2 |
2.x | EOL | prestashop/php-dev-tools |
N/A | v2.x | N/A | >=5.6,<7.2 |
3.x | Security fixes | prestashop/php-dev-tools |
N/A | v3.x | N/A | >=5.6,>=7.2.5 |
4.x | EOL | prestashop/php-dev-tools |
N/A | v4.x | N/A | >=7.2.5 |
5.x | Latest | prestashop/php-dev-tools |
N/A | master | N/A | >=7.2.5 |
Usage
The configuration files added in your project can be freely modified in order to match your needs.
Running the tools can be done by calling their respective binary:
PHP CS Fixer
Initialize the configuration with:
It'll create a configuration file .php-cs-fixer.dist.php
in the root of your project.
Upgrade note : When upgrading from 4.1.0 to newer version, you should re-run the init script or rename your .php_cs.dist
file to .php-cs-fixer.dist.php
in order to match the new requirements of cs-fixer.
PHPStan
It'll create a default file phpstan.neon
in tests/phpstan
, that are required to run phpstan.
The default phpstan level is the lowest available, but we recommend you to update this value to get more recommandations.
Autoindex
Applying an index.php file to all your project subfolders will be useful to avoid directories to be listed by the webserver.
Header Stamp
Your license headers can be updated by applying the header stamp.
Here is an example of call, applying the default license on a PrestaShop module:
Available options are provided with --help
.
All versions of php-coding-standards with dependencies
symfony/console Version ~3.2 || ~4.0 || ~5.0 || ~6.0 || ~7.0
symfony/filesystem Version ~3.2 || ~4.0 || ~5.0 || ~6.0 || ~7.0