Open Source

tgsf - A Simple PHP MVC Framework

tgsf is an uncomplicated MVC written for PHP developers who want to work with MVC like they are already working with traditional PHP (procedural and/or oop).

tgsf is a framework that tries to stay out of the way as much as possible - this means that you aren't forced into working in any particular style. If you want, you can flatten the models and views into the controllers which means that a controller can work like a horribly written php script of yore. We discourage this, but it is possible. Our vision of the framework is that it be as PHP-like as possible - providing a supporting system that allows a php developer to work how he is most comfortable. We don't restrict the use of $_GET even though we have built in support for an alternative syntax that populates the $_GET super global.

In addition to being under active development, tgsf offers the following:
  • Ultra-simple front controller with multiple-application support.
  • Advanced plugin system.
  • Useful yet simple API for common functions.
  • A simple approach to databases that loads super-early - uses PDO.
  • Multiple database connections supported.
  • Built-in support for minify for Javascript and css
  • Built-in shell script for publishing using rsync - enables easier dev -> live workflow.

tgsf requires PHP version 5, and probably requires a fairly recent version of 5 for PDO to work well.
The goal of tgsf is to provide a framework that allows a developer to work with PHP the way they are used to working with PHP. This means that procedural developers will be just as comfortable as oop developers.

The project is currently hosted at: http://code.google.com/p/tgsf/