定制 bendozy/orm 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

bendozy/orm

Composer 安装命令:

composer require bendozy/orm

包简介

A simple agnostic php ORM

README 文档

README

Build Status

#Simple ORM A simple lightweight php Object Relational Mapper(ORM) done according to the The PHP League way

#Testing The phpunit framework for testing is used to perform unit test on the classes. The TDD principle has been employed

Run this on bash to execute the tests

/vendor/phpunit/phpunit/phpunit

#Install

  • To install this package, PHP 5.5.9+ and Composer are required
composer require bendozy/orm

#usage

  • Save a record in the database
$user = new User();
$user->username = "Marcus";
$user->password = "password";
$user->email = "Marcus@andela.com";
$user->save();
  • Find a record
$user = User::find($id);
  • Update a record
$user = User::find($id);
$user->password = "passwordagain";
$user->username = "helloandela";
$user->save();

  • Delete a record -- returns a boolean
$result = User::destroy($id):
  • Find a record based on column value
$user = User::where('username', 'john');
``````



## Change log
Please refer to [CHANGELOG](CHANGELOG.mds) file for information on what has changed recently.

## Contributing
Please check out [CONTRIBUTING](CONTRIBUTING.md) file for detailed contribution guidelines.

## Credits
Simple ORM is maintained by [Chidozie Ijeomah](https://github.com/andela-cijeomah).

## License
Simple ORM is released under the MIT Licence. See the bundled [LICENSE](LICENSE.md) file for details.


统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-07