2017 © Pedro Peláez
 

library gateway-pattern

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 with Fractal support

image

faiverson/gateway-pattern

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 with Fractal support

  • Thursday, July 26, 2018
  • by faiverson
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

Gateways

Build Status Total Downloads Latest Stable Version License , (*1)

Coverage Status, (*2)

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., (*3)

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

Done!, (*4)

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');, (*5)

  • create your route, (*6)

License

This package is open-sourced software licensed under the Apache license., (*7)

The Versions

26/07 2018

dev-master

9999999-dev

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 with Fractal support

  Sources   Download

Apache-2.0 Apache

The Requires

 

The Development Requires

by Fabian Torres

15/07 2018

dev-tests

dev-tests

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 with Fractal support

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Fabian Torres

23/01 2018

dev-faiverson-coveral

dev-faiverson-coveral

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 with Fractal support

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Fabian Torres

29/12 2017

2.0.0

2.0.0.0

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 with Fractal support

  Sources   Download

Apache

The Requires

 

The Development Requires

by Fabian Torres

18/09 2017

1.1.6

1.1.6.0

Abstraction Layer to use repository/gateway pattern in Laravel 5.5 with Fractal support

  Sources   Download

Apache

The Requires

 

The Development Requires

by Fabian Torres

09/09 2017

1.1.0

1.1.0.0

Abstraction Layer to use repository/gateway pattern in Laravel 5.* with Fractal support

  Sources   Download

Apache

The Requires

 

by Fabian Torres

02/06 2017

1.0.0

1.0.0.0

Layer to use repository pattern or gateway pattern in Laravel 5

  Sources   Download

Apache

The Requires

 

by Fabian Torres