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/phpunitto make sure the code passes all tests.
- Use vendor/bin/phpcs srcto check for coding standards.
- Run vendor/bin/phpcs --report=diff srcfor a more detailed look.
- Use vendor/bin/phpcbf srcto fix non-standard coding.
- Run vendor/bin/phpunitagain to avoid any potential problems with php_codesniffer.