Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Glide: Easy Dynamic on-Demand Image Resizing
Mar 03, 2016 @ 10:52:59

On the SitePoint PHP blog editor Bruno Skvorc has posted a tutorial showing you how to use Glide, an image manipulation library that's a part of the League of Extraordinary Packages.

Glide is an image processing library built on top of Intervention. Its purpose is to facilitate on-demand image processing. That’s a fancy way of saying it creates images as they’re requested if they don’t exist.

He gives the example of the need to manipulate the image based on the user's device - like desktop versus mobile clients. He shows how to get the library installed (via Composer) and how to configure it with cache and source directories. He then integrates the library into a "no framework"-based application, passing the missing image request to the "image" controller for handling. However a basic implementation like this leaves it open to exploit. He shows how to restrict the allowed sizes with an allowedWidths data set. He ends the article with a look at image saving and caching with the possibility of writing the resulting file to the local drive (caching) if re-requested later.

tagged: glide image manipulation library theleague ondemand tutorial

Link: http://www.sitepoint.com/easy-dynamic-on-demand-image-resizing-with-glide/

Phil Sturgeon:
Meet the League
Feb 12, 2015 @ 10:56:17

Phil Sturgeon has a new post to his site introducing a group that you may have heard about but aren't exactly familiar with who makes it up - the members of the League of Extraordinary PHP Packages (or just "The League").

A few months ago I wrote What is The League of Extraordinary Packages?, and it was clearly written in a defensive tone. I wanted to explain a few things about the League because people were attacking it in weird ways. We sat down as a group and discussed a plan for 2015 to solve this. A lot of cool ideas came up, the first of which was to make a Leadership Group. These people have been doing amazing things in the PHP community at large, and have been doing awesome things in the League too. This is an introduction to them, and a thank you for everything they do.

He introduces five members of The League and talks about which project they're associated with:

There's several other packages besides those mentioned here that make up the League's offerings, so be sure to take a look at the list and see if there's anything that might benefit you or your application.

tagged: theleague meet introduction packages theleagueofextraordinarypackages members

Link: https://philsturgeon.uk/api/2015/02/11/meet-the-league/