Tutorials and Talks Polymorphism and WordPress: Interfaces

An in-depth article meant to introduce interfaces to the WordPress community. It includes a detailed example to explain how interfaces work and how you can use them in your WordPress projects.

Symfony2: How to create framework independent controllers?

Part I: Don't use the standard controller. The general belief is that controllers are the most tightly coupled classes in every application. Most of the time, based on the request data, they fetch and/or store persistent data from/in some place, then turn the data into HTML which serves as the response to the client who initially made the request. This post demonstrates that this high level of coupling is definitely not necessary.



Building a Drupal 8 Module: Blocks and Forms

In the first installment of this article series on Drupal 8 module development we started with the basics. In this tutorial we are going to go a bit further with our sandbox module found in this repository and look at two new important pieces of functionality: blocks and forms.



Dynamic Menu Builder for Bootstrap 3: Menu Manager

In this tutorial I’m going to show you how to create your own dynamic menu builder in PHP. This is a two part series, with the first part focusing on demo code and the Menu class, and the second part taking care of the other classes and usage examples.



Help Develop PHP: 5.6 RC1 on Homestead

PHP 5.6 RC1 was released last week, and this post looks at how to install it over the regular PHP in Laravel Homestead. The PHP core development team encourages people to play around and test with RC editions, and to submit build feedback back to them so that they may gather some usage statistics and possible build errors to address in the next release.



Exploring PHP Design Patterns

Design patterns have become an essential part in today's application development, regardless of the specific technology. The same is true in the world of PHP development--commonly used design patterns are also followed in PHP. This article will discuss the different design patterns that are used in the PHP domain with some sample applications.



How to Install WordPress 3.9 with Apache2 + MySQL 5.5 + PHP 5.5 in Ubuntu Server 14.04 LTS

WordPress is a free and open source blogging tool written in PHP and MySQl as a default database. It’s probably the easiest and most powerful blogging and website content management system (or CMS) in existence today. This tutorial will describe how to install fresh WordPress 3.9 with Apache2, Mysql 5.5 and PHP 5.5 in Ubuntu Server 14.04 LTS.



Modernizing Legacy PHP: From Service Locator To Dependency Injection

In an earlier article Paul Jones described how to start moving away from singletons in favour of dependency injection. It occured to him that the process for moving away from Service Locator is almost exactly the same, except that you use the container outside the class instead of inside it.



Stress-test your PHP App with ApacheBench

There’s no telling when your app might attract a throng of visitors at once. Massive influxes of visitors are a double-edged sword: they get you what you always wanted – a chance to prove your worth to a large chunk of the internet’s population – but also often bring with them what you always feared: absolute downtime. ApacheBench is a tool designed to nuke an endpoint with requests and load-test web servers, supporting a wide array of parameters and options you can tweak to simulate different loads.



Debugging PHP and JavaScript Code At The Same Time

When developing PHP applications for the web, chances are we’re also using a good amount of JavaScript with it. Using PhpStorm, we can debug the PHP code running on the server and inspect what is happening while it’s running. We can also debug the JavaScript running in the browser by starting a JavaScript debugging session from our IDE. But what if we want to do both at the same time? Is that even possible? Well, yes, it is! Here’s how. Part I: Don't use the standard controller. The general belief is that controllers are the most tightly coupled classes in every application. Most of the time, based on the request data, they fetch and/or store persistent data from/in some place, then turn the data into HTML which serves as the response to the client who initially made the request. This post demonstrates that this high level of coupling is definitely not necessary.In the first installment of this article series on Drupal 8 module development we started with the basics. In this tutorial we are going to go a bit further with our sandbox module found in this repository and look at two new important pieces of functionality: blocks and forms.In this tutorial I’m going to show you how to create your own dynamic menu builder in PHP. This is a two part series, with the first part focusing on demo code and the Menu class, and the second part taking care of the other classes and usage examples.PHP 5.6 RC1 was released last week, and this post looks at how to install it over the regular PHP in Laravel Homestead. The PHP core development team encourages people to play around and test with RC editions, and to submit build feedback back to them so that they may gather some usage statistics and possible build errors to address in the next release.Design patterns have become an essential part in today's application development, regardless of the specific technology. The same is true in the world of PHP development--commonly used design patterns are also followed in PHP. This article will discuss the different design patterns that are used in the PHP domain with some sample applications.WordPress is a free and open source blogging tool written in PHP and MySQl as a default database. It’s probably the easiest and most powerful blogging and website content management system (or CMS) in existence today. This tutorial will describe how to install fresh WordPress 3.9 with Apache2, Mysql 5.5 and PHP 5.5 in Ubuntu Server 14.04 LTS.In an earlier article Paul Jones described how to start moving away from singletons in favour of dependency injection. It occured to him that the process for moving away from Service Locator is almost exactly the same, except that you use the container outside the class instead of inside it.There’s no telling when your app might attract a throng of visitors at once. Massive influxes of visitors are a double-edged sword: they get you what you always wanted – a chance to prove your worth to a large chunk of the internet’s population – but also often bring with them what you always feared: absolute downtime. ApacheBench is a tool designed to nuke an endpoint with requests and load-test web servers, supporting a wide array of parameters and options you can tweak to simulate different loads.When developing PHP applications for the web, chances are we’re also using a good amount of JavaScript with it. Using PhpStorm, we can debug the PHP code running on the server and inspect what is happening while it’s running. We can also debug the JavaScript running in the browser by starting a JavaScript debugging session from our IDE. But what if we want to do both at the same time? Is that even possible? Well, yes, it is! Here’s how.