You can find nice summary of these metrics 2 posts:
- Shopsys, Spryker & Sylius under Static Analysis (2017-08)
- EasyCodingStandard and PHPStan meet 3 Symfony E-Commerce Projects (2017-10)
To be sure we're not making them up, you can run them yourself on you local machine:
Spryker requires few extra PHP extensions. Here is how you add them:
On Linux
sudo apt-get install php-bcmath php-gmp php-redis php-bz2
Then you can install this repository:
git clone https://github.com/TomasVotruba/shopsys-spryker-and-sylius-analysis.git ecommerce-analysis
cd ecommerce-analysis
composer install
As project have dependencies in conflict, they have to be cloned to own directories.
This command downloads all projects to /project
directory and runs composer install
on them.
bin/run prepare
bin/run analyze
Or limit it to single project:
bin/run analyze --project shopsys
And it will print this nice summary for every project:
This will check coding standards of project with psr2.yml
and clean-code.yml
sets:
bin/run ecs
This will run and show number of errors per level:
bin/run phpstan
# with specific level only
bin/run phpstan --level 7
# with top 20 most frequent errors
bin/run phpstan --level 7 --report
And it will print summary for every project: