Adam Griffiths

Hi, I'm Adam Griffiths, a Computer Science Student and Freelance Web Applications and CodeIgniter developer based in Shrewsbury, UK. I might only be 18 but I've written a book, maintained a popular blog and am one of the organisers behind CodeIgniter Con 2010, the first two-day UK conference and hack day for CodeIgniter.

My Code

I have released a couple of CodeIgniter libraries. I am best known for my user authentication library AG Auth (nee, The Authentication Library). I have recently released my Asset library, AG Asset. It serves as a simple way to store and load css files, images and script files. You can customise where you store your assets using a configuration file and loading assets is simply a doddle.

I am not just about releasing good quality libraries to the community. I believe a library can be the best thing since sliced bread, but it will never be used unless it has awesome documentation. That's why I always document my libraries and keep them updated so people can read them to know exactly how to use it without needed to open up the files to find out how many parameters a particular function needs.

AG Auth

AG Auth started out life as a simple authentication library and quickly grew on from there. Now it is so easy to use, all you have to do is copy the files to the right places and extend the class Application instead of Controller in your Controllers.

Read the user guide

AG Asset

AG Asset is one of the libraries I use to manage assets on this very website. It allows you to load CSS files, images and JavaScript files and pass different parameters to each function to change the returned value. All functions will return the HTML for the type of file you are loading, unless you only want to return the path. You can add styles to images, set the alternate text and supply a subfolder name. You are also able to set the media type of a CSS file to load stlyesheets for different types of devices. Overall this library is small but immensely useful for projects that need quick and easy asset management.

Read the user guide