Skip to content
Microservice Core for Laravel & Lumen
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src [fixed providers] May 3, 2019
.gitignore Add exceptions file Nov 4, 2018
composer.json fixed errors May 2, 2019
readme.md version 1.0.0 May 2, 2019

readme.md

KosmosX Framewok

Description

Is a micro-framework or bundle that implements all those basic services that any microservice or php application should have: JWT authentication management (for REST API) and REST standard responses, cache system files and redis, internal communications status between controller, resources manager and so on.

Installation

composer require kosmosx/framework

php artisan kosmosx:publish

Laravel

Add provider in array 'providers' (config/app.php)

Kosmosx\Framework\Providers\ManagerServiceProvider::class

Lumen

File bootstrap/app.php

//Add after $app = new Lar... etc
$app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config');
$app->instance('path.storage', app()->basePath() . DIRECTORY_SEPARATOR . 'storage');

//Uncomment this line
$app->withFacades();
$app->withEloquent();

//Register providers
$app->register(Kosmosx\Framework\Providers\ManagerServiceProvider::class);
You can’t perform that action at this time.