Feng Shui for PHP

Connect to the database, manage a user login session, drop all page output into a universal site-wide template. Do it without thinking about it. That is the goal behind the zen\this framework.

The current state of zen\this is "pre-alpha". This means right now I am still building and changing things to how I want them. Soon I will release a source code bundle, then at that point you will be able to try it for yourself. It will be released under the New BSD license.

Features

  • Page Templating. The Surface library takes the "push button, receive bacon" approach to page templating. The minimum application would just have to include the main framework file, echo something, and when the application ends stuff happens and BLAMO out pops a full styled web page. Did someone say Hello World?

  • Databases. The Database engine is designed to be easily extended to add support for different database servers or interfaces. The support for each database (the drivers) can be loaded individually to only support what you need and the main library is able to dynamically load the drivers as you need them.

    Because the drivers take care of the API work, you can do things like switch from MySQL to MySQLi with a quick configuration option without having to edit any of the code using the library. Keep in mind something more drastic like MySQL to MS-SQL you might have to update some of your SQL codes - but there is nothing we can do to help you with that.

    • MySQL (via basic MySQL)
    • MySQL (via MySQLi)
    • Others will come...
  • Platforms. The Platform library makes it easy to detect if we are running from a web browser or command line interface. It also tries to detect general devices, such as if we are viewing from a computer, iPhone, or iPad.

    • Current Platform: Browser (Generic)

    The platform library also enables you to define an application as an API, at which case the framework prepares slightly differently, for example the page rendering library flips into JSON output mode by default.

What It Is

  • Lightweight template engine.
  • Lightweight database engine.
  • Basic platform detection engine. (Computer, iPhone, iPad, etc)
  • Nice collection of utilities to make some common tasks easy.
  • An up to date PHP 5.3 framework using Namespaces.

What It Is NOT

  • A CMS, WordPress, Smarty, CakePHP, CodeIgniter, Zend, etc.
  • Dreamweaver, FrontPage, Photoshop, etc.
  • A magic website design machine.

Development Status

  • Status: PRE-ALPHA
  • Current Version: 0.3.0
  • Version Date: 20120105

Useful Links

Documentation

  • HAH!