中文镜像地址:http://medoo.lvtao.net/
最近开发了一个微信项目!其实挺简单的用不到数据库,但是功能太单一!看看如果用户量上去的话重新开发一个版本,方便更多人使用!如果重新开发的话需要个mysql的类所以去找了下发现了这个 MEDOO 看了下使用说明发现确实挺不错的!功能简单易懂。决定如果在开发新版本就使用这个了!
下面我介绍下 medoo如果如果大家使用数据库类的话可以使用这个!支持 mssql mysql 等各种数据库基本都已经包括在此类库上了!相当强。此外还有简洁的说明文档,一看就能上手~!堪称完美,
关于Medoo
Medoo是非常轻,只有一个文件,易于使用,易于学习和高性能,增加开发经验和用户体验的Web应用进行优化。它`适用于SQL数据库需要每一个PHP开发项目。
开发者
Angel Lai, the founder of Catfan, Mu6, Qatrix and Medoo, Entrepreneur, developer, designer and geek. Love making everything simpler and faster:)
许可证
Medoo是在MIT许可。您可以自由使用,长分发你的项目作为申报的原始版权信息。
了解更多:http://en.wikipedia.org/wiki/MIT_License
下载地址 http://medoo.in/
文档地址 http://medoo.in/doc
Medoo
The Lightest PHP database framework to accelerate development
Main Features
- Lightweight - Only 14KB with one file.
- Easy - Extremely easy to learn and use, friendly construction.
- Powerful - Support various common and complex SQL queries.
- Compatible - Support various SQL database, including MySQL, MSSQL, SQLite, MariaDB, Sybase, Oracle, PostgreSQL and more.
- Security - Prevent SQL injection.
- Free - Under MIT license, you can use it anywhere if you want.
Get Started
// Include Medoo (configured)
require_once 'medoo.php';
// Initialize
$database = new medoo();
// Enjoy
$database->insert('account', [
'user_name' => 'foo'
'email' => 'foo@bar.com',
'age' => 25,
'lang' => ['en', 'fr', 'jp', 'cn']
]);
// Or initialize via independent configuration
$database = new medoo([
'database_type' => 'mysql',
'database_name' => 'name',
'server' => 'localhost',
'username' => 'your_username',
'password' => 'your_password',
]);
Contribution Guides
For most of time, Medoo is using develop branch for adding feature and fixing bug, and the branch will be merged into master branch while releasing a public version. For contribution, submit your code to the develop branch, and start a pull request into it.
On develop branch, each commits are started with [fix]
, [feature]
or [update]
tag to indicate the change.
Keep it simple and keep it clear.
Liscense
Medoo is under the MIT License.
Links
- Official website: http://medoo.in
- Documentation: http://medoo.in/doc