PHPackages                             yaangvu/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. yaangvu/laravel-consul

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

yaangvu/laravel-consul
======================

Laravel Consul

v2.0.3(3y ago)417.5k↑366.7%31MITPHP

Since May 20Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/YaangVu/laravel-consul)[ Packagist](https://packagist.org/packages/yaangvu/laravel-consul)[ RSS](/packages/yaangvu-laravel-consul/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (21)Used By (1)

Laravel Consul
==============

[](#laravel-consul)

`Laravel Consul` help you load config from `Consul` server

Install
-------

[](#install)

`composer require yaangvu/laravel-consul`

### Laravel

[](#laravel)

Register service in `providers` array in `config/app.php`

```
YaangVu\Consul\ConsulProvider::class

```

Publish consul configuration file

```
php artisan vendor:publish --provider="YaangVu\Consul\ConsulProvider"

```

### Lumen

[](#lumen)

Register service in `app/Providers/AppServiceProvider.php`

```
 public function register()
    {
        $this->app->register(\YaangVu\Consul\ConsulProvider::class);
    }
```

Publish consul configuration file

```
cp vendor/yaangvu/laravel-consul/src/consul.php config/consul.php
```

Config
------

[](#config)

Append `.env` file with these configurations:

```
CONSUL_ENABLE=true
CONSUL_URI=${CONSUL_URI}
CONSUL_TOKEN=${CONSUL_TOKEN}
CONSUL_SCHEME=${CONSUL_SCHEME}
CONSUL_DC=${CONSUL_DC}
CONSUL_PATH=${CONSUL_PATH}
CONSUL_RECURSIVE=true
```

Add any Key Folder Consul you want to be loaded

```
'keys'   => [
        // 'foo',
        // 'bar'
    ],
```

Get env from Consul
-------------------

[](#get-env-from-consul)

```
php artisan yaangvu:consul
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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 ~35 days

Recently: every ~61 days

Total

20

Last Release

1188d ago

Major Versions

v1.x-dev → v2.0.02022-07-24

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.0.1PHP ^7.4|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc6edb5366277d97ecfedc77bcfbf41f49be74ccb182f6c2d04e597640d0c15c?d=identicon)[YaangVu](/maintainers/YaangVu)

---

Top Contributors

[![YaangVu](https://avatars.githubusercontent.com/u/14012135?v=4)](https://github.com/YaangVu "YaangVu (17 commits)")[![giangvt-toprate](https://avatars.githubusercontent.com/u/53530238?v=4)](https://github.com/giangvt-toprate "giangvt-toprate (3 commits)")

---

Tags

laravellumenbaseconsul

### Embed Badge

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

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[livewire/flux

The official UI component library for Livewire.

9476.8M121](/packages/livewire-flux)[ans-group/laravel-health-check

A package for checking the health of your Laravel/Lumen applications.

1661.0M4](/packages/ans-group-laravel-health-check)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19253.0k3](/packages/interaction-design-foundation-laravel-geoip)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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