PHP开发框架 Flourish

fmms 12年前

Flourish是一个面向对象的PHP开发框架。它拥有一个模块化的架构,这意味着它没有严格遵循MVC模式。它支持多种数据包括:MySQL、PostgreSQL、SQLite、MSSQL、Oracle、DB2。具有安全,易于使用,易于操作图片的特点。

示例代码:

// Connect to our SQLite database  fORMDatabase::attach(new fDatabase('sqlite', '/path/to/database'));     // Create an object to represent rows in the database  class User extends fActiveRecord {      // Return an iterable set of User objects      public static function findActive() {          return fRecordSet::build(              'User',                            // Make User objects              array('status=' => 'Active'),      // That are active              array('date_registered' => 'desc') // Ordered by registration date          );      }  }     // Loop through and display the users' names  foreach (User::findActive() as $user) {      echo $user->prepareFirstName() . ' ' . $user->prepareLastName() . '  ';  }

项目主页:http://www.open-open.com/lib/view/home/1335678012687