MySQL cheetsheet


MySQL is one of the most popular sql databases, it is a powerfull, free open-source database management system that has been around for years. MySQL powers 9 of the 10 top Web sites worldwide, as well as thousands of corporate web-based applications. MySQL was designed and optimized for Web applications, that’s why it became the favorite choice for web developers.

Run PHPUnit on multiple PHP versions using Docker

docker phpunit php

One of the biggest advantage using Docker is the ability to switch between tools versions. Personally I think the easiest way to demonstrate how you can benefit from this advantage is to run PHPUnit tests against different PHP versions.

Graceful restart php-fpm

php php-fpm modern php

Php-Fpm allows for a graceful restart of child, usually with the reload keyword instead of restart on the init script.

Automate code standards validation with Composer, Git Hooks and PHPCodeSniffer

clean code composer git phpcs

Recently I had to setup a new project and like always I prefer to enforce the code standards on the project so that I don’t need to worry about this ever again. Because I realized there are a lot of people who don’t know how this could be accomplished I decided to write a short post about this, maybe it helps others out there. We will use composer, pre-commit git hook and off course phpcs to automate code quality checks.

How to properly load local dependencies with composer

composer local dependencies

Sometime you may find yourself working on an application and needed to load some local package, component or fork in order for you to be able to temporarily try some things and keep everything clean and organized while you’re developing. You’re first thought could be to copy the package content into your vendor directory or even symlink it. But that’s the ugly way to do this, fortunately there’s a better way.

subscribe via RSS