configure Mezzio swoole/openswoole to use monolog for access logging and error logging

I tend to favor Mezzio micro framework for highly available PHP projects for it’s close adherence to PHP standards and following dev best practices – coupled with swoole/openswoole library for all things concurrency && async – this makes a mean performance machine. Anywho – out of the box mezzio swoole logging comes with some default … Read more

Doctrine cli with multiple databases

When adding doctrine orm into your project – there is a cli commands present that allows you to do some operations, such as clear cache or update database schema from entities code etc. While typical instruction from doctrine docs talk about adding cli-config.php file into project root and then using vendor/bin/doctrine script – I find … Read more

Use Php code sniffer (phpcs) to keep code clean with consistent coding style

If you don’t use it already – I would highly recommend it for any new projects, especially if working on a project in a team environment. PHP code sniffer is an essential tool for php developers that helps us with keeping code clean and consistent. Which PHP coding style to select? There is only one … Read more