Category: Debugging

Re-Introducing Jenkins: Automated Testing with Pipelines

As our applications become more complex – with Composer dependencies, Webpack build scripts, and per-environment variables – we inevitably reach a point where testing all of these different intricacies becomes slow and laborious, especially when you’re tearing down and rebuilding the entire environmen...

EOL Firebug

The Firebug extension isn’t being developed or maintained any longer. We invite you to use the Firefox built-in DevTools instead.Looks like the end of an over 2 year process. Firebug was probably the single most important tooling advancement in front-end developments short life. A glimpse of the future, indeed...

Sending PHP Event Messages to Remote Logstash on Windows

By opening this article you’ve endeavored yourself to expanding your knowledge of PHP applications as part of event-based distributed systems. You’ll be given a quick intro into what we are referring to when we say event messages, what Logstash is, and why it is so cool. If you’ve already heard of B...

Sourcehunt – Open Source Week Edition

Sourcehunt – Open Source Week Edition This week is Open Source Week at SitePoint.com. While we do usually cover open source here, what with all the tutorials and introductions to amazing new libraries, packages, and frameworks, this week will be a little “theoretical” for a change. We’ll discus...

Beaver in Action: Practical MySQL Optimization

Clients with an existing application sometimes ask me to fix bugs, improve efficiency by speeding up the application, or add a new feature to some existing software. The first stage of this is researching the original code – so-called reverse engineering. With SQL databases, it is not always immediately obvious which...

A Crash Course of Changes to Exception Handling in PHP 7

Exception handling saves your code in the most unusual circumstances. PHP 7 has introduced two new classes that assist a developer in handling errors with ease, and that’s what we’ll look at in this post. Before the introduction of these classes in PHP 7, exception error classes were written to handle the d...

Testing PHP Code with Atoum – an Alternative to PHPUnit

If you’ve been around PHP for more than a little while, you’ve no doubt started to test your code. And if you ask anyone in the PHP space what to use for writing unit tests, likely the first answer that they’ll give you is PHPUnit. It’s the de facto standard in the PHP community, and with good reason. But it’...

Quick Intro: PhpCompatibility for PHPCS – Are You PHP7 Ready?

Sooner or later, there will come a time when you will need to migrate your projects to different PHP versions. How will you check if you’re compatible with a PHP version different to the one you’ve been developing on? One possibility is always to install the version of PHP we want to migrate to, run […...

Mail Logging in Laravel 5.3: Extending the Mail Driver

One of the many goodies Laravel offers is mailing. You can easily configure and send emails through multiple popular services, and it even includes a logging helper for development. Mail::send('emails.welcome', ['user' => $user], function ($m) use ($user) { $m->to($user->email, $user->name)->s...

Static analysis with PHPSA: PHP Smart Analyzer

One requirement that never changes whether you are working on your projects alone or in a team, on small projects or big, is Code Quality. The bigger the project and the team, the harder it gets to maintain it.A good way of slowing this increase in difficulty down is to use static analysis tools. Static analysis is t...