PHP

Use of undefined constant SIGINT

Recently, while setting up a FreeBSD laptop, I was configuring Phpactor as Language Server for PHP. The idea was to have it working in Vim through the YouCompleteMe plugin. While trying to start the Phpactor server, I received the following error (among others): Use of undefined constant SIGINT – assumed ‘SIGINT’ (this will throw an Error in a future version…

Continue Reading

Vim editor
Linux, PHP

Vdebug: Xdebug not showing full array contents

Have you ever tried to debug some PHP code in Vim just to find that Xdebug won’t show the full array contents? Fortunately the DBGP protocol allows you to set features for debugging, such as the max length of data that the debugger returns. You can set these features in the Vim dictionary g:vdebug_features, and they will be sent to…

Continue Reading

Bash terminal
PHP

Bash API Contract Testing

We have been doing some API development at work, and at one point we started evaluating tools for API contract testing. One of the explored approaches was drafting a bash script that glued some native Linux tools together in order to achieve the desired results. That’s how this tool came to be. It is a proof of concept (POC) used…

Continue Reading

PHP, Short Articles

Magazon WordPress Theme Error

Yo!, what’s up? I’ll post this here in order to (hopefully) save someone some time: If you happen to be using a WordPress theme called Magazon (even the latest versions), you probably found out that it’s broken. The issue gets worst as in latest version of WordPress it is not evident what the problem is because WordPress suppresses the error…

Continue Reading

PHP

CodeIgniter + Quickbooks Online SDK integration

I’ve just recently published a little Github project with the purpose of showing how to integrate CodeIgniter and the PHP SDK provided by Intuit in order to connect to Quickbooks Online services. The idea is to continue working on it until it reaches some degree of maturity. It should not take too much time, but time is scarce lately. I’m…

Continue Reading