承接 faiverson/gateway-pattern 相关项目开发

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

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

faiverson/gateway-pattern

Composer 安装命令:

composer require faiverson/gateway-pattern

包简介

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 or higher

README 文档

README

Build Status Total Downloads Latest Stable Version License

[![Coverage Status](https://coveralls.io/repos/github/faiverson/gateways/badge.svg?branch=master)](https://coveralls.io/github/faiverson/gateways?branch=master)

Gateways Installation

This package is a layer to interact between Controller and Model. If you want to create an abstraction layer to centralize all the queries in one class, instead of being adding models (eloquent queries) in a controller. What about to repeat that code in a command or observer or any other peace of the puzzle. This is where Gateways are handy! You only need to inject the Gateway dependency whereever you want.

  • Install the package Gateways using composer:
    composer require faiverson/gateway-pattern
  • Run the command:
    php artisan vendor:publish

Done!

How to Use

  • Go to the console and you can run:
    make:gateways:controller Create a new controller class make:gateways:full Create a new Repository class make:gateways:gateway Create a new Gateway class make:gateways:interface Create a new Interface class make:gateways:model Create a new Eloquent model class make:gateways:repository Create a new Repository class -Copy the line generated in your console into app/Providers/RepositoryServiceProvider.php e.g. $this->app->bind('App\Repositories\Interfaces\FooInterface', 'App\Repositories\FooRepository');

  • create your route

License

This package is open-sourced software licensed under the Apache license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache
  • 更新时间: 2017-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固