Bronze

Bronze is a minimalist PHP framework that came out of my exercises while learning MVC. The idea behind it was to make every single page, snippet or action a method of a certain controller (called an action). The concept is that you can nest these actions to an arbitrary level (at least until PHP reaches the recursion depth limit). The front controller is a recursive pattern that calls itself whenever an action is requested from another action or template. The complete request process is done as much times as needed. For example: if you have an action that renders a login form, you can display it as a separate page, or you can display it as a part of another page. The code is the same. You don't even need to write ifs and elses. To get a better picture of the request process, look at the following diagram:

front-controller

This article will get updated as i manage to find time and document this framework. I hope someone finds it useful, or the concept interesting.

Download here: http://code.google.com/p/bronze-framework

Leave a Reply