Category Archives: PHP

PHP – Custom MVC Framework with Smarty3 and ActiveRecords

After using a few different PHP MVC’s I decided to work on my own framework when I had some spare time. Over the past few days I’ve put together a lightweight and feature rich small PHP MVC Framework. Note that … Continue reading

Posted in PHP, PHP frameworks | Tagged , , | 2 Comments

PHP – Using the Steam XML API

Steam has had XML output on profiles, games and groups for a while so I thought I would post up one of my old classes for retrieving Steam user data. The class below will download the XML for games and … Continue reading

Posted in PHP | Tagged , , , | 2 Comments

PHP – Easy AES Encryption Class

AES Encryption is now an easy way of securing your data with a secret key thanks to the MCrypt PHP extension. You can read documentation and basic examples on using MCrypt on the PHP.net page. Below is a small class … Continue reading

Posted in PHP | Tagged , , , | Leave a comment

PHP – TinyMVC Session Plugin

Another TinyMVC plugin; this time to get and set session variables from within your controllers. Utilising PHP5′s magic functions to add and remove entries from the $_SESSION global, quickly and easily. Drop the following code into your plug-ins directory and … Continue reading

Posted in PHP, PHP frameworks | Tagged , , , | 1 Comment

PHP – Useful TinyMVC View Helpers

Back again with more TinyMVC code. As I get more into this framework the more code I’ll be posting up, the functions in the code below are to be used directly from TinyMVC views and not controllers or models. One … Continue reading

Posted in PHP, PHP frameworks | Tagged , , , | 2 Comments

PHP – TinyMVC Template Wrapper Plugin

TinyMVC provides a great structure for developing new projects, it’s small base allows the developer to write new plug-ins and extend on the existing framework. Below you’ll find a template wrapper I have made to manage the views and assigning … Continue reading

Posted in PHP, PHP frameworks | Tagged , , | 1 Comment

PHP Page basic page caching

One of the most useful things you can do in terms of performance is to cache the page you’re currently serving so that no code gets executed again and again when it isn’t needed. I’ve provided a sample below of … Continue reading

Posted in PHP | Tagged , , | 1 Comment

PHP Object to Multidimensional Array

Below is a piece of code showing how to transform an Object into a Multidimensional Array, there are quite a few functions in PHP that return stdClass objects such as some MySQL, JSON or XML functions. If it is a … Continue reading

Posted in PHP | Tagged , , , | Leave a comment