mosaiqo / api-consumer
dev-master
2018-02-16 09:42 UTC
Requires
- laravel/framework: ~5.6
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^3.6
- phpunit/phpunit: ^7.0
- satooshi/php-coveralls: ^2.0
This package is auto-updated.
Last update: 2024-11-04 19:09:34 UTC
README
Enable Hexagonal architecture for Laravel
Installation
composer require mosaiqo/hexagonal 0.1.*
Add the following provider to your config/app.php
in the providers
array.
'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
.
Of course you can override the RouteServiceProvider
and therefore change the behavior.
- routes
-- web.php
-- api.php
- lang
-- en
--- <your-file>.php
-- es
--- <your-file>.php
TODO
- UnitTests