Helper to generate Code Styling, PhpUnit and Swagger documentation


Polishing your php code methodlogies



1 Code Styling

 vendor/bin/phpcs --standard=PSR2 app src

vendor/bin/phpcbf --standard=PSR2 --report=json app src

2 PHPUNIT

vendor/bin/phpunit

vendor/bin/phpunit --log-junit web/phpunit/phpunit.xml --coverage-clover web/phpunit/coverage.xml --coverage-html web/phpunit/


3 Generate Swagger

Generate swagger documentation Swagger endpoint

vendor/bin/openapi -o "web/swagger.json" app/ src/ web/


Comments

Popular posts from this blog

Best PHP comment DockBlock !

How to fix pgDump dbeaver ?