PFP – A tiny PHP application framework

In my free time, I often work on small personal PHP projects. This allows me to keep in touch with the new technologies, frameworks,… For instance, I’ve recently started using Bootstrap to create well presented web-applications.

My issue was that, each time I started a new project, I had to re-create the skeleton for the application. This basically meant copying an old project, remove everything specific, clean all the configuration values,… before I could start working. That’s why I decided to create an independant project, which I could use as a skeleton for almost all my PHP applications.

But while looking at several existing solutions (Zend, CakePHP, FuelPHP,…), I’ve decided that these frameworks were way too heavy and complicated for my needs. I only needed a basic MVC skeleton. Then I found PIP, which is a tiny, lightweight MVC framework for LAMP stacks.

I’ve forked the project as PFP, so I could alter it to match my needs. The main modification I’ve made so far are:

  • converting all global variables to constants
  • using PDO instead of the mysql functions
  • creating a global header and footer for the whole application

With these modifications, I’ve got my generic application skeleton, that I can use for all my PHP website developments.

You can find all the information about this project on this page.

This project is released on GitHub here under an MIT license.

No tips yet.
Be the first to tip!

Like this post? Tip me with bitcoin!


If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

Leave a Reply

Your email address will not be published. Required fields are marked *