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