Tutorials and Talks Using PHP Streams Effectively

In a previous article from Sitepoint several months ago, we discovered the basics of PHP streams and how powerful they are. In this tutorial we are going to learn how to use this power in the real world. First we will learn how to build custom filters and attach them to a stream, before packaging filters inside a document parser application.



Find and Correct Misspelled Words with Pspell

Every site could do with a search function to indicate misspellings if no or too few results have been found. PHP's Pspell module allows for checking the spelling of a word and suggesting a replacement from it's default dictionary, or from a customised dictionary.



Imagick vs GD

If you want to create a thumbnail, apply a filter to an image or transform it in any other way, you will have to employ an image processing library in your PHP application. It means that you will probably choose GD or ImageMagick. But which one supports a wider range of image formats? Maybe one of them is slower than the other? What other criteria should be taken into consideration when choosing the right library? Read this article to find out.



Automated Testing with Selenium2 and PHPUnit

Selenium2 is a software testing framework for web applications. This tutorial focuses on automating browser testing using Selenium2.



Battle of the Autoloaders: PSR-0 vs PSR-4

If you've gone past the beginner stage in your PHP training, you've heard of PSR-0 - an autoloading standard that defines ways to automatically include PHP classes in your code. When Composer showed up and took the PHP package management world by storm, things changed. Due to some of its rules, folders often duplicated and became too deep when looking at PSR-0 class installations via Composer. Therefore some highly qualified PHP devs got together and put together a suggestion for a new standard: PSR-4.



Google App Engine and PHP: Getting Started

It's been a while since Google announced PHP Support on Google App Engine. This article series will take you through all the necessary steps in getting your app up and running on GAE. This tutorial uses PhpStorm which supports GAE projects out of the box, but you can use any IDE of your choice.



Beyond Clean Code

This is the 4th post in Anthony Ferrara's "Beyond" series. The three previous posts focused on reimagining OOP and questioning some of the core beliefs that we have come to take for granted. This one is slightly different, in that he talks about another angle of writing code: the process itself. People always talk about how code should be clean, but how do you write clean code?



Deploying a Laravel Application Using Capistrano

So you've just built a fancy web application and you're planning to put it online. This can be done in many ways. This article covers one approach to deploy your backend system to your production server. It will go through the following steps through the example of a Laravel application, but this can be applied to any other language or technology.



The Repository Design Pattern

The Repository Design Pattern is one of the most useful and widely applicable design patterns ever invented. Any application has to work with persistence and with some kind of list of items. The problem that all of these list management logics have in common is how to connect business logic, factories and persistence.

In a previous article from Sitepoint several months ago, we discovered the basics of PHP streams and how powerful they are. In this tutorial we are going to learn how to use this power in the real world. First we will learn how to build custom filters and attach them to a stream, before packaging filters inside a document parser application.Every site could do with a search function to indicate misspellings if no or too few results have been found. PHP's Pspell module allows for checking the spelling of a word and suggesting a replacement from it's default dictionary, or from a customised dictionary.If you want to create a thumbnail, apply a filter to an image or transform it in any other way, you will have to employ an image processing library in your PHP application. It means that you will probably choose GD or ImageMagick. But which one supports a wider range of image formats? Maybe one of them is slower than the other? What other criteria should be taken into consideration when choosing the right library? Read this article to find out.Selenium2 is a software testing framework for web applications. This tutorial focuses on automating browser testing using Selenium2.If you've gone past the beginner stage in your PHP training, you've heard of PSR-0 - an autoloading standard that defines ways to automatically include PHP classes in your code. When Composer showed up and took the PHP package management world by storm, things changed. Due to some of its rules, folders often duplicated and became too deep when looking at PSR-0 class installations via Composer. Therefore some highly qualified PHP devs got together and put together a suggestion for a new standard: PSR-4.It's been a while since Google announced PHP Support on Google App Engine. This article series will take you through all the necessary steps in getting your app up and running on GAE. This tutorial uses PhpStorm which supports GAE projects out of the box, but you can use any IDE of your choice.This is the 4th post in Anthony Ferrara's "Beyond" series. The three previous posts focused on reimagining OOP and questioning some of the core beliefs that we have come to take for granted. This one is slightly different, in that he talks about another angle of writing code: the process itself. People always talk about how code should be clean, but how do you write clean code?So you've just built a fancy web application and you're planning to put it online. This can be done in many ways. This article covers one approach to deploy your backend system to your production server. It will go through the following steps through the example of a Laravel application, but this can be applied to any other language or technology.The Repository Design Pattern is one of the most useful and widely applicable design patterns ever invented. Any application has to work with persistence and with some kind of list of items. The problem that all of these list management logics have in common is how to connect business logic, factories and persistence.