定制 minerva/orm 二次开发

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

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

minerva/orm

最新稳定版本:v1.2.3

Composer 安装命令:

composer require minerva/orm

包简介

Minerva ORM

README 文档

README

Simple ORM/DataMapper library using the Repository pattern.

Usage

To create a new Repository class for your models, create a class that extends from Minerva\Orm\BasePdoRepository:

<?php

namespace Acme\Example\Repository;

use Minerva\Orm\BasePdoRepository;

class BlogRepository extends BasePdoRepository
{
    
}

To instantiate your repository, simply call:

$blogRepo = new PdoBlogRepository($pdo);
$blogs = $blogRepo->findAll(); // returns a list of all blog objectstore
$blog = $blogRepo->find(1); // returns blog with id 1

License

MIT (see LICENSE.md)

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering.

Btw, we're hiring!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-11