2017 © Pedro Peláez
 

library api-consumer

image

mosaiqo/api-consumer

  • Friday, February 16, 2018
  • by mosaiqo
  • Repository
  • 3 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 256 % Grown

The README.md

Mosaiqo Api Consumer

Enable Hexagonal architecture for Laravel, (*1)

Installation

    composer require mosaiqo/hexagonal 0.1.*

Add the following provider to your config/app.php in the providers array., (*2)

'providers' => [
    ...

    /**
     * Package Service Providers...
     */
    Mosaiqo\Hexagonal\Providers\LaravelServiceProvider::class,

    ...
];

In each package you should create a routes and a lang folder, like this: The translation files are optional, but the routes are necessary if you are going to extend the Mosaiqo\Hexagonal\Providers\RouteServiceProvider., (*3)

Of course you can override the RouteServiceProvider and therefore change the behavior., (*4)

- routes
-- web.php
-- api.php
- lang
-- en
--- <your-file>.php
-- es
--- <your-file>.php

TODO

  • UnitTests

The Versions

16/02 2018