Medoo 介绍
Medoo是一款超轻量级的PHP sql数据库开发框架,提供了简单,易学,灵活的API,提升开发Web应用的效率与性能,而且体积只有8KB不到。
特性:
示例代码:
// Include Medoo require_once 'medoo.PHP'; // Initialize $database = new medoo([ 'database_type' => 'MysqL', 'database_name' => 'name', 'server' => 'localhost', 'username' => 'your_username', 'password' => 'your_password', 'charset' => 'utf8' ]); // Enjoy $database->insert('account', [ 'user_name' => 'foo' 'email' => '[email protected]', 'age' => 25, 'lang' => ['en', 'fr', 'jp', 'cn'] ]); // Or initialize from file and then $database = new medoo();