| Package Data | |
|---|---|
| Maintainer Username: | personali |
| Maintainer Contact: | amirbilu@gmail.com (amirbilu) |
| Package Create Date: | 2016-06-15 |
| Package Last Update: | 2016-06-19 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-30 15:00:41 |
| Package Statistics | |
|---|---|
| Total Downloads: | 2,944 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 12 |
| Total Watchers: | 3 |
| Total Forks: | 2 |
| Total Open Issues: | 1 |
composer require personali/laravel-consul
Add to providers in config/app.php:
Personali\LaravelConsul\ConsulServiceProvider::class,
Add to aliases in config/app.php:
'Consul' => Personali\LaravelConsul\ConsulFacade::class,
To your .env add these variables and set them to your liking:
CONSUL_AGENT_HOST=localhost
CONSUL_AGENT_PORT=8500
Copy config/consul.php to your config folder/
Currently supports only the retrieving of healthy instances:
Consul::getHealthClient()->getHealthyServicesInstances('name-of-service')