PHPackages                             wzy-wangge/laravel-consul - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wzy-wangge/laravel-consul

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wzy-wangge/laravel-consul
=========================

laravel连接consul获取健康服务

0.0.4(5y ago)08MITPHP

Since Jun 15Pushed 5y agoCompare

[ Source](https://github.com/wzy-wangge/laravel-consul)[ Packagist](https://packagist.org/packages/wzy-wangge/laravel-consul)[ RSS](/packages/wzy-wangge-laravel-consul/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (5)Used By (0)

Consul Client for laravel
=========================

[](#consul-client-for-laravel)

Quickstart
----------

[](#quickstart)

```
composer require wzy-wangge/laravel-consul

```

Add to `providers` in `config/app.php`:

```
Wzy\LaravelConsul\ConsulServiceProvider::class,

```

To your `.env` add these variables and set them to your liking:

```
CONSUL_AGENT_HOST=localhost
CONSUL_AGENT_PORT=8500

```

复制 config/consul.php 到你的`config`下、否则运行会有异常

Usage
-----

[](#usage)

Currently supports only the retrieving of healthy instances:

```
Consul::getHealthClient()->getHealthyServicesInstances('name-of-service')

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~582 days

Total

4

Last Release

1871d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31752332?v=4)[wzy-wangge](/maintainers/wzy-wangge)[@wzy-wangge](https://github.com/wzy-wangge)

---

Top Contributors

[![amirbilu](https://avatars.githubusercontent.com/u/7681048?v=4)](https://github.com/amirbilu "amirbilu (14 commits)")[![wzy-wangge](https://avatars.githubusercontent.com/u/31752332?v=4)](https://github.com/wzy-wangge "wzy-wangge (3 commits)")

### Embed Badge

![Health badge](/badges/wzy-wangge-laravel-consul/health.svg)

```
[![Health](https://phpackages.com/badges/wzy-wangge-laravel-consul/health.svg)](https://phpackages.com/packages/wzy-wangge-laravel-consul)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
