We have taken a number of open-source PHP projects, including several popular Drupal modules, and have passed them through PHPMetrics to evaluate their complexity.
On GitHub at https://github.com/dcycle/dcomplexity
docker compose up and then visit http://localhost:4331
Put your code in a directory called ./my-code and then run docker run -v "$(pwd)":/my --rm composer /bin/bash -c "composer require phpmetrics/phpmetrics && ./vendor/bin/phpmetrics --report-html=myreport /my/my-code && mv myreport /my/my-report"
Add a pull request to https://github.com/dcycle/dcomplexity suggesting the module on the file ./docs/_data/projects.yml.
Not often!
./scripts/run.sh
No! I hadn’t event heard of him until today. He’s not bad, you should check him out.
Via LinkedIn at https://www.linkedin.com/in/albertalbala
Glad you asked: see here
I prompted ChatGTP with ‘I have a website where I run several open source PHP projects through PHPMetrics, a tool to determine their relative code complexity. I need to have a preview image for that, can you make one? It shouldn’t look like stock photography and should be rather sober, and contain no text’. So much for ‘contain no text’!