PHP

21
Apr
phpcs Fatal Error with wp-coding-standards/wpcs

phpcs Fatal Error with wp-coding-standards/wpcs

The phpcs autoformat-er failed to perform on save in VS Code. "A Fatal Error" pops up. It is caused by the sniffs applied, wpcs, which is not yet compatible with PHP8. But it can be resolved with a line of PHP configuration.
25
Aug
Xdebug with VS Code (Remote - SSH)

Xdebug with VS Code (Remote - SSH)

quickly setup php debugging on remote server with Xdebug and VS Code with Remote-SSH enable
1 min read
22
Aug
Assessing Grey Level of an Image with PHP

Assessing Grey Level of an Image with PHP

<?php /** * Get gray level of some position of an image */ function get_gray_rgb($image, $x, $y) { $rgb = imagecolorat(
1 min read
15
Jan
Basis of Composer for PHP

Basis of Composer for PHP

Composer for PHP
1 min read