PHPackages                             prestashop/php-dev-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. prestashop/php-dev-tools

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

prestashop/php-dev-tools
========================

PrestaShop coding standards

v5(1y ago)362.1M↑29.4%20[9 issues](https://github.com/PrestaShop/php-dev-tools/issues)[3 PRs](https://github.com/PrestaShop/php-dev-tools/pulls)20MITPHPPHP &gt;=7.2.5CI passing

Since Nov 5Pushed 3mo ago12 watchersCompare

[ Source](https://github.com/PrestaShop/php-dev-tools)[ Packagist](https://packagist.org/packages/prestashop/php-dev-tools)[ RSS](/packages/prestashop-php-dev-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (36)Used By (20)

PrestaShop Coding Standards
===========================

[](#prestashop-coding-standards)

[![Latest Stable Version](https://camo.githubusercontent.com/a3781d156595d65d75927bd75ac0506535f83f0be17725661f43770147e847df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726573746173686f702f7068702d6465762d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/prestashop/php-dev-tools) [![Minimum PHP Version](https://camo.githubusercontent.com/c308bc60fd70a2672917b5d79fdc6bd664c9bb7e40980cf6cffc93dabd681728/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e322e352d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/) [![Quality Control Status](https://camo.githubusercontent.com/d82df3ce1ac7c336be05c0948a1ca719ec2427c58232ebcca7b3f2b4f32215c7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f70726573746173686f702f7068702d6465762d746f6f6c732f50485025323074657374733f7374796c653d666c61742d737175617265)](https://github.com/prestashop/php-dev-tools/actions/workflows/php.yml)

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:

- [friendsofphp/php-cs-fixer](http://github.com/FriendsOfPHP/PHP-CS-Fixer)
- [phpstan/phpstan](https://github.com/phpstan/phpstan)
- [prestashop/autoindex](https://github.com/PrestaShopCorp/autoindex)
- [prestashop/header-stamp](https://github.com/PrestaShopCorp/header-stamp)

Installation
------------

[](#installation)

```
composer require --dev prestashop/php-dev-tools

## Development dependencies runtimes
composer require --dev friendsofphp/php-cs-fixer
composer require --dev phpstan/phpstan
composer require --dev prestashop/header-stamp
composer require --dev prestashop/autoindex
composer require --dev squizlabs/php_codesniffer
```

When this project is successfully added to your dependencies, you can enable each review tool on your projet.

Version Guidance
----------------

[](#version-guidance)

VersionStatusPackagist -NamespaceRepoDocsPHP Version1.xEOL`prestashop/php-dev-tools`N/A[v1.x](https://github.com/PrestaShop/php-dev-tools/tree/1.x)N/A&gt;=5.6,&lt;7.22.xEOL`prestashop/php-dev-tools`N/A[v2.x](https://github.com/PrestaShop/php-dev-tools/tree/2.x)N/A&gt;=5.6,&lt;7.23.xSecurity fixes`prestashop/php-dev-tools`N/A[v3.x](https://github.com/PrestaShop/php-dev-tools/tree/3.x)N/A&gt;=5.6,&gt;=7.2.54.xEOL`prestashop/php-dev-tools`N/A[v4.x](https://github.com/PrestaShop/php-dev-tools/tree/4.x)N/A&gt;=7.2.55.xLatest`prestashop/php-dev-tools`N/A[master](https://github.com/PrestaShop/php-dev-tools/tree/master)N/A&gt;=7.2.5Usage
-----

[](#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

[](#php-cs-fixer)

Initialize the configuration with:

```
$ php vendor/bin/prestashop-coding-standards cs-fixer:init [--dest /path/to/my/project]
```

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.

```
$ vendor/bin/php-cs-fixer fix
```

### PHPStan

[](#phpstan)

```
$ php vendor/bin/prestashop-coding-standards phpstan:init [--dest /path/to/my/project]
```

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.

```
$ _PS_ROOT_DIR_= php vendor/bin/phpstan --configuration=tests/phpstan/phpstan.neon analyse
```

### Autoindex

[](#autoindex)

Applying an index.php file to all your project subfolders will be useful to avoid directories to be listed by the webserver.

```
$ vendor/bin/autoindex prestashop:add:index
```

### Header Stamp

[](#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:

```
$ vendor/bin/header-stamp --license=assets/afl.txt --exclude=vendor,node_modules
```

Available options are provided with `--help`.

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance53

Moderate activity, may be stable

Popularity54

Moderate usage in the ecosystem

Community42

Growing community involvement

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~50 days

Recently: every ~236 days

Total

34

Last Release

725d ago

Major Versions

v1.2 → v3.02020-03-02

v3.15 → v4.02021-04-16

v3.15.1 → v4.1.02021-06-17

v3.16.1 → v4.2.02021-10-21

PHP version history (2 changes)v2.1PHP &gt;=5.6.0

v4.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15106407?v=4)[Jarvis](/maintainers/ps-jarvis)[@ps-jarvis](https://github.com/ps-jarvis)

---

Top Contributors

[![Quetzacoalt91](https://avatars.githubusercontent.com/u/6768917?v=4)](https://github.com/Quetzacoalt91 "Quetzacoalt91 (66 commits)")[![PierreRambaud](https://avatars.githubusercontent.com/u/1462701?v=4)](https://github.com/PierreRambaud "PierreRambaud (42 commits)")[![zalexki](https://avatars.githubusercontent.com/u/3863527?v=4)](https://github.com/zalexki "zalexki (9 commits)")[![matks](https://avatars.githubusercontent.com/u/3830050?v=4)](https://github.com/matks "matks (8 commits)")[![SebSept](https://avatars.githubusercontent.com/u/2592502?v=4)](https://github.com/SebSept "SebSept (7 commits)")[![AJenbo](https://avatars.githubusercontent.com/u/204594?v=4)](https://github.com/AJenbo "AJenbo (4 commits)")[![Progi1984](https://avatars.githubusercontent.com/u/1533248?v=4)](https://github.com/Progi1984 "Progi1984 (4 commits)")[![intraordinaire](https://avatars.githubusercontent.com/u/1721887?v=4)](https://github.com/intraordinaire "intraordinaire (3 commits)")[![nicosomb](https://avatars.githubusercontent.com/u/121870?v=4)](https://github.com/nicosomb "nicosomb (3 commits)")[![M0rgan01](https://avatars.githubusercontent.com/u/36233446?v=4)](https://github.com/M0rgan01 "M0rgan01 (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![jmcollin](https://avatars.githubusercontent.com/u/3930246?v=4)](https://github.com/jmcollin "jmcollin (2 commits)")[![Touxten](https://avatars.githubusercontent.com/u/156076965?v=4)](https://github.com/Touxten "Touxten (1 commits)")[![PrestaSafe](https://avatars.githubusercontent.com/u/4788787?v=4)](https://github.com/PrestaSafe "PrestaSafe (1 commits)")[![kpodemski](https://avatars.githubusercontent.com/u/2137763?v=4)](https://github.com/kpodemski "kpodemski (1 commits)")[![m-Poulain](https://avatars.githubusercontent.com/u/93722295?v=4)](https://github.com/m-Poulain "m-Poulain (1 commits)")[![madsoliver](https://avatars.githubusercontent.com/u/30602638?v=4)](https://github.com/madsoliver "madsoliver (1 commits)")[![hugofintecture](https://avatars.githubusercontent.com/u/89129201?v=4)](https://github.com/hugofintecture "hugofintecture (1 commits)")

---

Tags

coding-standardshacktoberfestphpprestashoptool

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/prestashop-php-dev-tools/health.svg)

```
[![Health](https://phpackages.com/badges/prestashop-php-dev-tools/health.svg)](https://phpackages.com/packages/prestashop-php-dev-tools)
```

###  Alternatives

[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[tuck/converter-bundle

Adds a command for converting service container configs to other file formats

7125.0k](/packages/tuck-converter-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
