smeeckaert/fw-orm 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

See the wiki

License

Everything here is public domain.

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unlicense
  • 更新时间: 2015-09-20