A repository of common files shared by Phở stack PHP projects.
- Use logging.
- info for debugging, warning for serious issues.
- PSR-1 and PSR-2
- _ prefix for in-class helper methods
- __ prefix for duplicate method names imported from traits.
- "hy" prefix for "hydrated" methods.
- Make sure you have unit tests in regards to your contribution.
- Run
vendor/bin/phpunit
to make sure the code passes all tests. - Use
vendor/bin/phpcs src
to check for coding standards. - Run
vendor/bin/phpcs --report=diff src
for a more detailed look. - Use
vendor/bin/phpcbf src
to fix non-standard coding. - Run
vendor/bin/phpunit
again to avoid any potential problems with php_codesniffer.