blog

PHPStorm – connect to MySQL database

Posted on

It can be a bit painful to get the database connection started from your PHPStorm IDE to your MySQL database. As a quick hint, this is where it went wrong with mine: MySQL wasn’t listening for incoming connections on the network (change directive¬†bind-address to 0.0.0.0 in /etc/mysql/my.cnf and restart MySQL) My database user was only […]

0 Shares
blog

PHPStorm – use PHP CodeSniffer

Posted on

Use PHP Code Sniffer to detect violations to coding standards in your PHP files. To use PHP Code Sniffer in PHPStorm, open the Settings and go to PHP -> Code Sniffer In the field ‘PHP Code Sniffer (phpcs) path:’ fill in the path where the binary resides. Most of the times this is ‘/usr/bin/phpcs’. If […]

0 Shares