Recent PHP articles
Unit-testing your WordPress plugin can be challenging. Luckily there are tools out there making it a lot easier. In this post, we will be covering the following tools: PHPUnit, Mockery and BrainMonkey. Together these tools can be a powerful tool to ensure the technical quality of your plugin. Before we started using these tools at …Read: "Unit-testing with mocks in WordPress"
Plugins and themes from the WordPress.org repository install as stand-alone packages; they need to contain all the code, files, and dependencies needed to function correctly. Because there is no centralized system with an overview of all the dependencies used in different WordPress plugins and themes, they all need to implement their own safety net. Dependencies …Read: "Safely using PHP dependencies in the WordPress ecosystem"
Back in 2001 I did my first internship at a web company in Groningen (in the north of the Netherlands). This is where I discovered I have a passion for web development. Since then I’ve mostly worked at companies with a very small technical team (1-3 people) which brought out my constructive and problem solving …Read: "Reinventing my developer happiness"
A nice way to optimize your test flow is by having PhpStorm run your unit tests for you. It can be quite some work to set this up for WordPress plugins, since they depend so heavily on WordPress. In this post, I'll go over all the steps you'll have to take to do this.Read: "Unit testing WordPress plugins with PHPUnit in PhpStorm"
This past weekend I was fortunate enough to be able to join the Yoast Dev team on our visit to PHPBenelux Conference 2016 in Antwerp, Belgium. This two-day event was jam-packed with tutorials, speakers, interesting conversations and lots of laughs. There was too much going on to cover it all, but I’ll discuss some of the …Read: "PHPBenelux Conference 2016 - A retrospect"
As regular readers of this blog might know I have written quite some tools using the different API's of search engines, and always found them quite useful. When I was implementing my sitewide search function, one of the things that bothered me that it was a bit slow. I knew that I had seen some …Read: "PHP-APC: Speed up your web applications!"
Those of you coming to this site more often might have noticed a small change in the search box. It's now implemented sitewide, and I've built a sitewide search functions using the Yahoo! API. It was quite nescessary because I found that people were searching for "sortable.zip" on the blog, and they wouldn't find anything …Read: "Implementing a sitewide search function"
I'm doing some work on a site which has like 4,500 pages indexed with a PHPSESSID in the URL, causing some major duplicate content problems. I got the server admin to disable the PHPSESSID's by adding the following to the vhost config: I also wanted Google to get a clean URL when it decided to …Read: "PHPSESSID in your URL? Learn to 301 redirect them with PHP"
The W3C announced the release of an API for the HTML validator or rather, that's what they call it. In fact, it's nothing more than an output filter on their normal validator output, which gives SOAP 1.2 conforming output. It requires a HTTP request though, which makes it a rather funny "API" to deal with.Read: "W3C Validator API"