gingteam/redbean
Composer 安装命令:
composer require gingteam/redbean
包简介
Extra RedBean 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
Installation
composer require gingteam/redbean
Quick Example
How we store a book object with RedBeanPHP:
use GingTeam\RedBean\Facade as R; R::setup('sqlite:'.__DIR__.'/data.db'); $book = model('book'); $book->author = 'Santa Claus'; $book->title = 'Secrets of Christmas'; R::store($book); $qb = R::createQueryBuilder(); $data = $qb ->select('*') ->from('book') ->fetch();
Yep, it's that simple.
More information
For more information about RedBeanPHP please consult the RedBeanPHP website:
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-29