PHPackages                             yuancode/laravel-zkconfig - 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. yuancode/laravel-zkconfig

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

yuancode/laravel-zkconfig
=========================

laravel-zkconfig is a laravel configuration management tool

v1.0.1(5y ago)091MITPHPPHP ^7.2

Since Aug 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lyuangg/laravel-zkconfig)[ Packagist](https://packagist.org/packages/yuancode/laravel-zkconfig)[ RSS](/packages/yuancode-laravel-zkconfig/feed)WikiDiscussions master Synced today

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

laravel-zkconfig
================

[](#laravel-zkconfig)

[简体中文](./README_zh.md)

laravel-zkconfig is a laravel configuration management tool. You can save some configuration information in zookeeper.

Instructions
------------

[](#instructions)

### Installation

[](#installation)

```
composer require 'yuancode/laravel-zkconfig'
```

### Publish configuration files

[](#publish-configuration-files)

```
php artisan vendor:publish --provider="Yuancode\ZkConfig\ZkConfigServiceProvider" --tag=config
```

### Add zk configuration

[](#add-zk-configuration)

```
create /test/zkconfig '{"app.name": "test"}'
```

### Modify the code

[](#modify-the-code)

Modify the `bootstrap/app.php` file and add the following code under `$app`:

```
$app->afterBootstrapping(\Illuminate\Foundation\Bootstrap\LoadConfiguration::class, function ($app) {
     $zk = new \Yuancode\ZkConfig\Zk($app);
     $zk->loadZkConfig();
});
```

#### lumen

[](#lumen)

```
$app = new Laravel\Lumen\Application(
    dirname(__DIR__)
);

$zk = new \Yuancode\ZkConfig\Zk($app);
$zk->setHost('127.0.0.1:2181')    //zookeeper host
->setPath('/app/zkconfig/')       //config root path
->setCachePath(storage_path('zkconfig/config.json')) //config cache path
->setMode(\Yuancode\ZkConfig\Config::MODE_ENV)  //replace env variable
->setValType(\Yuancode\ZkConfig\Zk::VALUE_TYPE_KEY) //key,value mode
->loadZkConfig();  //load config
```

### Available commands

[](#available-commands)

#### Cache zk

[](#cache-zk)

```
php artisan zkconfig:server cache
```

#### Clean up the zk cache

[](#clean-up-the-zk-cache)

```
php artisan zkconfig:server cache
```

#### Automatically update the zk cache

[](#automatically-update-the-zk-cache)

```
php artisan zkconfig:server start
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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 ~65 days

Total

2

Last Release

2085d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fd097eca0ea45d1120df4fb015dd70ed1624451c55da36d0930ec2587c191a7?d=identicon)[yuancode](/maintainers/yuancode)

---

Top Contributors

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

---

Tags

composerlaravellumenphpzookeeper

### Embed Badge

![Health badge](/badges/yuancode-laravel-zkconfig/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)

PHPackages © 2026

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