Download the PHP package solutionplus/microservice without Composer
On this page you can find all versions of the php package solutionplus/microservice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solutionplus/microservice
More information about solutionplus/microservice
Files in solutionplus/microservice
Package microservice
Short Description a laravel package to deal with specific case of micro-services connection. So, it doesn't suit all needs or handle all connection cases
License proprietary
Informations about the package microservice
Solutionplus/MicroService
solutionplus/microservice is a Laravel package for dealing with specific case of micro-services connection so, it doesn't suit all needs or handle all connection cases.
Table of Content
Installation
Usage
License
Installation
You can install the package using composer
Important:
Don't forget to modify the added env key
MS_GLOBAL_PROJECT_SECRET
to exactly match all other microservices projectsMS_GLOBAL_PROJECT_SECRET
then run:
- Then apply
micro-service
on the routes group you will create to communicate with other microservices
usage
There is some predefined methods that will help you communicate with other services shown below:
The above methods are must to be used if you need to encrypt requests between micro-services
Note:
in case the middlewares are not auto discovered then follow the next steps:
- add both middlewares
micro-service
andmicro-service-establish-connection
to$routeMiddleware
array insidekernel.php
file like so:
Using micro-service
middleware on micro-services routes group is a must as it's responsible about decoding requests in order to make you deal with it as you usually do. Otherwise it will lead to unexpected results.
Note:
Don't use
micro-service-establish-connection
on any request yourself. It's already running on the predefinedmicro-services
store
route.
Note:
UNDER CONSTRUCTION.
License
Solutionplus/MicroService package is limited and proprietary software belongs to Solutionplus.net company.