Category: Debugging & Deployment

Sylius and Cutting Your Teeth on TDD

Sylius is an e-commerce application / framework based on Symfony. It boasts 100% code coverage, which is impressive for a PHP application of that size. In this article, we are going to walk through the different kinds of tests available and try out some Test and Behavior Driven Development (TDD/BDD). See the Sylius in...

Laravel Dusk – Intuitive and Easy Browser Testing for All!

End to end testing for JavaScript applications, particularly single-page-apps, has always been a challenge. To that end, Laravel released its 5.4 version recently with a new testing library: Dusk.With the release of Dusk, Laravel hopes to give its users a common API for browser testing. It ships with the default Chr...

Testing Frenzy – Can We BDD Test the Units?

I’ll be honest, I don’t do much testing. When it’s really necessary and I’m working on big enterprise projects, I do, but in general, my personal projects are usually one-man-army proofs of concept, or fixes on already tested apps. [author_more] We’ve done our share of testing posts here a...

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...

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...

How to Properly Deploy Web Apps via SFTP with Git

Uploading files is an integral aspect of any deployment process, and the underlying implementation can vary depending on the type of your server. You can easily upload your files to an SFTP server using an open source desktop client like Filezilla. Those who have used this are aware that this process is cumbersome and...

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...

Hashicorp’s Packer – Is It Something for PHP Developers?

tl;dr; – Is Packer a tool you’ll need in your tool box as a PHP developer? It depends. If you do a lot of server work for your clients or on the job, along with development work, then yes. Packer can help you a lot. If you are only a developer and don’t really do much work on the server directly, t...

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...