承接 kodebyraaet/pattern 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kodebyraaet/pattern

最新稳定版本:v0.4.5

Composer 安装命令:

composer require kodebyraaet/pattern

包简介

The base for the repository pattern that we use in Kodebyraaet

README 文档

README

The base for the repository pattern we use in Kodebyraaet.

Installation

Install composer dependency.

composer require kodebyraaet/pattern

If you are using Laravel add the Service Provider to the config/app.php file.

Kodebyraaet\Pattern\BaseRepositoryServiceProvider::class,

If you are using Lumen add the Service Provider to the bootstrap/app.php file.

$app->register(Kodebyraaet\Pattern\BaseRepositoryServiceProvider::class);

Create the base repositories

If you have the Kodebyraaet Generators installed you can just run the following command:

php artisan make:base-repository

Or you can do it manually:

Create the file App\Entities\Repository.php (the namespace may differ):
<?php

namespace App\Entities;

use Kodebyraaet\Pattern\BaseRepository;

class Repository extends BaseRepository
{

}
Create the file App\Entities\RepositoryInterface.php (namespace may differ):
<?php

namespace App\Entities;

use Kodebyraaet\Pattern\BaseRepositoryInterface;

interface RepositoryInterface extends BaseRepositoryInterface
{

}

How to use

Check out Kodebyraaet Generators for a easier way to create the structure that extends this repository pattern.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-19