xiongchao / laravel-zookeeper
zookeeper package for laravel
v0.0.2
2021-12-15 13:22 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^8.5@dev
This package is auto-updated.
Last update: 2025-03-17 08:50:09 UTC
README
Installation
composer require xiongchao/laravel-zookeeper
If using Laravel, add the Service Provider to the providers
array in config/app.php
:
[ 'providers' => [ BigBoom\Zookeeper\ZookeeperServiceProvider::class, ], ]
If using Lumen, appending the following line to bootstrap/app.php
:
$app->register(BigBoom\Zookeeper\ZookeeperServiceProvider::class);
If you need use Laravel Facades, add the aliases
array in config/app.php
:
[ 'aliases' => [ 'Zk' => BigBoom\Zookeeper\Facades\Zk::class, ], ]
If you need use Lumen Facades, uncomment the code in bootstrap/app.php
:
$app->withFacades();
Using
//example <?php use BigBoom\Zookeeper\Facades\Zk; class TestController extends controller { public function test () { $nodeValue = Zk::getChildren(''); } }