https://github.com/jefferyjob/consul-manager
Laravel 的 consul 服务管理扩展包
https://github.com/jefferyjob/consul-manager
consul laravel laravel-package library php
Last synced: about 2 months ago
JSON representation
Laravel 的 consul 服务管理扩展包
- Host: GitHub
- URL: https://github.com/jefferyjob/consul-manager
- Owner: jefferyjob
- License: mit
- Created: 2021-08-11T09:09:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-12T10:01:16.000Z (almost 5 years ago)
- Last Synced: 2025-06-17T11:49:27.631Z (about 1 year ago)
- Topics: consul, laravel, laravel-package, library, php
- Language: PHP
- Homepage:
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Consul Manager
Laravel 的 consul 服务管理扩展包
## Label
[](https://laravel.com)
[](https://www.php.net)
[](https://www.consul.io)
[](https://github.com/jefferyjob/consul-manager/issues)
[](https://github.com/jefferyjob/consul-manager)
[](https://github.com/jefferyjob/consul-manager)
[](https://github.com/jefferyjob/consul-manager/blob/master/LICENSE)
## 安装
首先,通过 Composer 包管理器安装 consul-manager:
```shell
composer require jefferyjob/consul-mananger
```
consul-manager 安装完成后,使用 `vendor:publish Artisan` 命令来生成 `consul-manager` 配置文件。这个命令将在你的 `config` 目录下生成一个 `consul_manager.php` 配置文件。
此外,还会在框架文件 `framework/config/app.php` 的 `providers` 和 `aliases` 注入服务。
```shell
php artisan vendor:publish --provider="ConsulManager\Providers\ConsulManagerServiceProvider"
```