PHPackages                             faisalilhami/laravel-consul-kv - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. faisalilhami/laravel-consul-kv

ActiveLibrary[HTTP &amp; Networking](/categories/http)

faisalilhami/laravel-consul-kv
==============================

Package for laravel to connect to consul kv

1.0.2(1y ago)013MITPHP

Since May 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/faisalilhami27/laravel-consul-kv)[ Packagist](https://packagist.org/packages/faisalilhami/laravel-consul-kv)[ RSS](/packages/faisalilhami-laravel-consul-kv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Laravel Consul KV
=================

[](#laravel-consul-kv)

Package for help you load config from `Consul` server

Install
-------

[](#install)

`composer require faisalilhami/laravel-consul-kv`

### Laravel

[](#laravel)

1. Register service in `providers` array in `config/app.php` if you are using Laravel &lt;= 10
2. Register service in `providers` array in `boostrap/providers.php` if you are using Laravel &gt;= 11

```
Faisalilhami\LaravelConsulKv\Provider::class

```

Publish consul configuration file

```
php artisan vendor:publish --provider="Faisalilhami\LaravelConsulKv\Provider"

```

Publish consul configuration file

```
cp vendor/faisalilhami/laravel-consul-kv/src/consul.php config/consul.php
```

Config
------

[](#config)

Create `.env` file with these configurations:

```
CONSUL_ENABLE=true
CONSUL_URI=
CONSUL_TOKEN=
CONSUL_SCHEME=
CONSUL_DC=
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 get:consul
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

728d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d57d91dddeb0e28f80077656fd02431246897ad6bed17a6c84f3c4313c75a637?d=identicon)[faisal.ilhami27](/maintainers/faisal.ilhami27)

---

Top Contributors

[![faisalilhami27](https://avatars.githubusercontent.com/u/65403710?v=4)](https://github.com/faisalilhami27 "faisalilhami27 (8 commits)")

### Embed Badge

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

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)[kyrne/websocket

Integrated Pusher replacement.

121.6k1](/packages/kyrne-websocket)

PHPackages © 2026

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