DevShed takes the next step in their image generation tutorial series today with
part two - the addition of some validation methods to the class:
In this second part of the series I'll show you how to introduce some important modifications to the initial skeleton of the image generator class, to make it slightly more modular and independent, while maintaining its functionality nearly the same as before. Sounds pretty interesting, right?
The
validation they add checks the input the developer gives the mini-app's image creation function to ensure that it's getting valid height, width, text color, etc. Exceptions are thrown when the information is incorrect.
DevShed: Adding Validation to an Image Generator Class with PHP 5 - Read More...