Frameworks

From RedBean

Jump to: navigation, search

Contents

RedBean in Frameworks

RedBean can be integrated in various PHP MVC frameworks. If you are looking for a framework that ships with an integrated version of RedBeanPHP I recommend to take a look at Shozu. Besides Shozu, RedBeanPHP is known to integrate well in Zend Framework, Kohana PHP Framework, CodeIgniter and many more popular frameworks.

Frameworks that ship with RedBean

Code Igniter

For some reason people who like CI also tend to like RedBeanPHP, so there is a vast majority of documentation on how to make these two friends work together. Here is a tutorial. Here is also a new redbean-plugin for Code Igniter. Here is another module for RedBeanPHP Integration: HMVCRedBean.

KohanaBean

KohanaBean is a module for the Kohana Framework for PHP that allows tight integration with RedBeanPHP.

Shozu Framework

While RedBean is a stand-alone library you can get RedBean integrated in an MVC framework as well. The Shozu framework comes with out-of-the-box RedBeanPHP support. Shozu is a very smart and lightweight framework for rapid application development on the PHP platform. Some of the inspiration for Shozu comes from the well known 'green framework'. Shozu is also the first framework that has adopted RedBeanPHP for ORM. It's a framework worth considering!

Dashy! Framework

Dashy MVC Framework ships with RedBeanPHP. Dashy is an easy to use, lightweight MVC framework for PHP that plays very well with AJAX.

Rain Framework

RainPHP Framework offers out-of-the-box RedBeanPHP integration (as a driver). The Rain Framework for PHP is very well designed modular MVC framwork suitable for any type of application.

Lexa Tools Framework

Lexa Tools is a modern and liberal PHP 5.3 framework (liberal in the sense that it does not enforce a framework-like structure). You can find more information about this framework on the Lexa Tools website, the code is hosted on Google Code.

Akaikiwi Framework

Akaikiwi is a lightweight and easy-to-learn PHP framework that ships with RedBeanPHP.

FreeFrame Framework

FreeFrame is a lightweight PHP framework to build rich internet applications. This framework ships with RedBeanPHP.


ASAR

Asar framework is a resource oriented framework for PHP that ships with RedBeanPHP.


Zend Integration

Integrating RedBean in the Zend Framework is easy. Just follow these steps.

1. Copy the Library

First, copy the RedBean folder to your Zend Library folder so that you can access RedBean using:

library/RedBean You can also create a symlink if you like.

2. Configure

Now open your Zend bootstrap file and add:

public function run() {
$loader = Zend_Loader_Autoloader::getInstance()->registerNamespace('RedBean_');
require_once( APPLICATION_PATH . "/../library/RedBean/redbean.inc.php");
$tools = RedBean_Setup::kickstartDev( "mysql:host=localhost;dbname=timereg", "root" );
Zend_Registry::set("tools", $tools);
Zend_Registry::set("db", $tools->getDatabaseAdapter());
Zend_Registry::set("redbean", $tools->getRedBean());
parent::run();
}


Your RedBean Toolbox can be retrieved using:

$toolbox = Zend_Registry::get("tools");

Thank you framework authors

Thanks to the authors of these frameworks we can provide developers with out-of-the-box solutions. In my opinion frameworks are incredibly important. They offer creative production environments to build web applications and they offer a channel to distribute RedBeanPHP. Together we can make the land of software development a better place to live... or should I say... a better place to code? Many thanks to these brave authors who have found the courage to think outside of the box by choosing for RedBeanPHP!

Personal tools