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 3w ago

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 31% 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

1923d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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