Monday, February 1, 2016

micronPHP - A Simple, Lightweight framework for building apps and API's in PHP

Building a website with PHP from scratch is annoying. You have to write the same boilerplate code for database connection, routing and defining absolute paths.

Then you might ask, why dont you use a framework ? Maybe Laravel, or CodeIgniter?
But, why should you make such a simple web app heavy by using these sophisticated frameworks ? Well of course we need them for larger projects. But using them for simple websites can be an overkill.

At Cloudfoyo, we have developed our own simple framework called,  micronPHP, Which packs all the basic functions to get started. We use this framework for simple website projects.

It even helps us to separate the presentation logic from application logic by using a view and controller. And yes, micronPHP do not have Models, Just to keep it simple. It uses the PHP PDO Extension for db access. It has some helper functions too.

micronPHP is opensource and is available at
https://github.com/anandrmedia/micronPHP