Code


While working on client projects, I often use open-sourced code. Whether that’s Bootstrap, PHP classes or jQuery plugins/libraries – most projects use at least one open-sourced product so it seems only fair to give back!

Here are some of the open-source projects that I’ve developed, primarily written in PHP or jQuery (JavaScript) with hopefully more projects released in the future.

PHP

PHP Upload

A PHP class that makes handling uploads and file validation a lot simpler. You can use the chainable methods to set up the upload parameters such as min/max file size, mime types, and file extensions. Once set up, you can simply turn on the ignition().

For a more advanced upload option, this class allows you to add callbacks and loop through the files awaiting upload to perform your own validation and checks.

Tested to work with PHP 5.6 and PHP 7.

Read more about my "PHP Upload" script...
PHP

PHP IMAP Reader

A PHP class that makes working with IMAP as easy as possible. This class is written to be chain-able so as to create a logically fluent and easily readable way to access an IMAP mailbox. It simplifies the PHP IMAP_* library into a set of easy to read methods that do the heavy lifting for you.

It has been fully tested to work from PHP 5.3+ including PHP 7.0.

Read more about my "PHP IMAP Reader" script...
jQuery

jQuery Calendar

A simple lightweight (2.1KB) jQuery JavaScript plug-in to generate calendars with 8 responsive colour schemes to choose from (or use your own style sheet).

This was built using the PHP Calendar version and shares the same calendar styles.

Read more about my "jQuery Calendar" script...
PHP

PHP Twitter Widget

A PHP alternative to the Twitter Embed Timelines JavaScript. Twitter Embedded Timelines allow you to show your latest tweets using JavaScript. While this can help you easily implement your latest tweets on your website, I needed to create a similar effect without including any additional JavaScript files on the web page. I decided to create a script that will fetch tweets server side, and allow for including in a web page without JavaScript includes. I also needed to ensure I cached the result, to avoid hitting API limits.

Works with PHP 5.3 through to PHP 7.

Read more about my "PHP Twitter Widget" script...
Interested in working together to make something great? Hire Ben