daidai118/redbean
Composer 安装命令:
composer require daidai118/redbean
包简介
RedBeanPHP ORM
关键字:
README 文档
README
RedBeanPHP is an easy to use ORM tool for PHP.
- Automatically creates tables and columns as you go
- No configuration, just fire and forget
- No complicated package tools, no autoloaders, just ONE file
Installation via Composer
Just open your composer.json file and add the package name (e.g. "gabordemooij/redbean": "dev-master") in your require list.
{
"require": {
"gabordemooij/redbean": "dev-master"
}
}
NOTE:
You will find many examples on the RedBean website make use of RedBean's R class. Because of namespaced autoloading in Composer, this class will be available as \RedbeanPHP\R instead of R. If you desire to use the much shorter R alias, you can add a use statement at the beginning of your code:
use \RedBeanPHP\R as R;
If you are not using Composer then try it.
Quick Example
How we store a book object with RedBeanPHP:
$book = R::dispense("book"); $book->author = "Santa Claus"; $book->title = "Secrets of Christmas"; $id = R::store( $book );
Yep, it's that simple.
More information
For more information about RedBeanPHP please consult the RedBeanPHP website:
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: New
- 更新时间: 2017-10-09