Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 867 Bytes

php.md

File metadata and controls

36 lines (28 loc) · 867 Bytes

PHP

One Liners

# Quick Web server
php -S 127.0.0.1:8000

Composer

Optmizing Autoloader

https://getcomposer.org/doc/articles/autoloader-optimization.md

Code Standards

composer global require phpmd/phpmd
composer global require "squizlabs/php_codesniffer=*"
phpcs --config-set default_standard PSR

filename=test.php

# Use mess detector!
phpmd ${filename} text codesize,unusedcode,naming,design

# Use Code style checker
phpcs ${filename}`
# To fix fails phpcbf is your friend!
phpcbf ${filename}

Links