Code Showcase

While working on client projects, we often use open-sourced code. Whether that’s Tailwind CSS, PHP libraries, Vue components or jQuery plugins – 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 Ben has developed, primarily written in PHP, jQuery or Vue.js with hopefully more projects released in the future.

You can view more on Ben's GitHub account: https://github.com/benhall14

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 8.

PHP IMAP Reader

A PHP class that makes working with IMAP as easy as possible. This class is written to be chain-able 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 8.

PHP Calendar

A PHP class that makes generating calendars as easy as possible. You can use the addEvent() or addEvents() methods to mark events on the generated calendar.

This is fully compatible from PHP 5.3+, including PHP 8.

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.

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 8.

Simple Vue Calendar

A really simple event-driven Vue 2 calendar component.

This is available via NPM: https://www.npmjs.com/package/simple-vue-calendar

This was built using the jQuery Calendar version and shares the same calendar styles for Vue.js 2

WooCommerce - Customers Also Viewed

A simple plugin built for WordPress that allows the website owner to integrate a section showing products that have been viewed by other users that have viewed the current product.

The owner can choose the location of the "Customers Also Viewed" box, or use the new [customers-also-viewed] shortcode within the loop to fully customize the placement.

This is fully tested up to WordPress Version 5.2.4.

PHP Pagination

A lightweight PHP pagination class to output pagination links. This class is written to be chain-able so to create a logically fluent and easily readable way to create a set of pagination links.

It simplifies the paging of results and outputs Bootstrap 4 compatible navigation HTML.

It has been fully tested to work with PHP 5.5+, including PHP 8+.

We're always looking to bring new interesting ideas to life, so if you have something like this in mind, please drop us a line and we can discuss the requirements.