smeeckaert/fw-orm
最新稳定版本:1.0.0.0
Composer 安装命令:
composer require smeeckaert/fw-orm
包简介
ORM for FW
README 文档
README
This is a lightweight standalone ORM in PHP. It was primarly made to use for simple REST APIs.
What it does
- Uses PDO as interface
- Provide Model helpers for CRUD
- Provide helpers to access relations
- Use PHPDoc as documentation
- Based on PHP, not in configuration.
What is not supported and won't be
This library is willingly simplified.
If you want to use these features, there is plenty other ORM available that do it probably better !
- Transactions
- Complexes query. Queries are simple, you can't mix "OR" and "AND" in the ORM, even if you can "bypass" that.
- Relations. While there is some support for accessing or creatin model relations, it won't be near what other ORM can provide.
- Multiple databases.
Installation
Clone the depot and add the Orm namespace in your autoloader.
Then put database informations in your application bootstrap.
$dsn = 'mysql:dbname=YOUR_DB;host=YOUR_HOST'; $user = 'YOUR USER'; $password = 'YOUR_PASSWORD'; \Orm\DB::init($dsn, $user, $password);
Documentation
License
Everything here is public domain.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unlicense
- 更新时间: 2015-09-20