Garrett St. John

I am a web developer and partner at Bold. This is where I share my thoughts, discoveries and other random bits.

Topic Archives: CodeIgniter

CodeIgniter Spark for SendGrid’s Newsletter API

February 16, 2012

I’ve submitted my first CodeIgniter library to GetSparks.org in an effort to start giving back to the community that has provided us with so many great tools. This library is a wrapper to the SendGrid Newsletter API and supports all of their provided methods. What is SendGrid? SendGrid is a easy-to-use email delivery service similar to Postmark or Amazon’s SES. [Keep Reading…]

Managing CodeIgniter Packages with Git Submodules

September 26, 2011

Link: http://philsturgeon.co.uk/blog/2011/09/managing-codeigniter-packages-with-git-submodules Great post on how to include Git projects within other Git projects as submodules. I’ve been wanting to do this for a long time!

CodeIgniter US State Helper

August 11, 2011

I’m working on a project today and building a credit card checkout form for what seems like the 1,000th time. It occurred to me that a US State Helper would save me from having to 1)  look up all of the states every time, and 2) dump them into an array and build out functions [Keep Reading…]

Extracting Attachments From Emails With PHP

February 8, 2011

Yesterday I wrote about how to read emails with PHP, but I want to dig a bit deeper and discuss another part of the My Slow Low project that needed tackling: Extracting attachments from emails with PHP. For the purposes of this post, I will be specifically discussing file attachments, not HTML inline attached files. [Keep Reading…]

CodeIgniter Migrations

October 7, 2010

Link: CodeIgniter Migrations esbueno: An open source utility for Codeigniter inspired by Ruby on Rails. The one thing Ruby on Rails has that Codeigniter does not have built in is database migrations. That function to keep track of database chages (versions) and migrate your database to what ever version you need. Migrate up or migrate [Keep Reading…]

ExpressionEngine Documentation Quick Search with Alfred

September 29, 2010

Link: ExpressionEngine Documentation Quick Search with Alfred Use the power of Alfred to quickly and easily search ExpressionEngine documentation. Works great for CodeIgniter as well!

CodeIgniter Credit Card Helper

June 5, 2010

Jim O’Halloran has put together a stellar Credit Card Helper for CodeIgniter which includes the following highly useful functions: Card Number Truncation – Removes all but the first four and last three digits of a credit card and replaces them with X’s. Card Number Cleaning – Removes all non-numeric characters from the credit card number [Keep Reading…]

FTP Download with the CodeIgniter FTP Library

February 23, 2010

I was recently working on a project that involved FTP and I thought it would be a great chance to get away from the built-in PHP functionality and use the CodeIgniter FTP library instead. I was pretty surprised to find that there was no download functionality in the base FTP library as of CI 1.7.2. [Keep Reading…]

CodeIgniter File Upload: Changing the File Name

August 25, 2009

There has been some interest lately about how to change the file name of uploaded files with CodeIgniter. I will review how to do this with the base File Upload library as well as extending the library to allow for a defined file name. Using the Base File Upload Library The base file upload library [Keep Reading…]

Dreamhost API Library for CodeIgniter

August 17, 2009

As I’ve said many times before, I love CodeIgniter. The framework is fluid and light-weight and the developer community is great. I’ve been inspired many times by the extensive list of CodeIgniter libraries provided by Elliot Haughin and decided I ought to follow in his footsteps with a great new API library. Today I released [Keep Reading…]