Download the PHP package yykpf/zookeeper-node-cache without Composer

On this page you can find all versions of the php package yykpf/zookeeper-node-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zookeeper-node-cache

zk节点命令行缓存工具

命令行缓存

[^_^]: 通过调用命令行命令来执行zk的监听机制最终实现缓存

使用方法

1、引入项目

    composer require yykpf/zookeeper-node-cache

2、发布服务创建配置文件

     php artisan vendor:publish --provider='ZookeeperNodeCache\ZookeeperServiceProvider'

     lumen 需要引入  laravelista/lumen-vendor-publish 否则不存在 vendor:publish 这个命令
   有些服务可能不支持自动发布,就需要:
      1)、在config/app.php 中添加

     2)、查看是否存在文件 config/zookeepercache.php,如果没有就创建 并复制 config.php 内容进去
3、通过执行以下命令来开启zk缓存,缓存方式在config文件配置zookeepercache[支持文件和redis两种方式]

4、通过配置local_env变量来开启是否支持本地env缓存

5、执行命令 php artisan zookeeper:node:cache

6、调用方式 ($node 监听路劲[路径+版本号]下的节点值)
    use zk;

        zk::getNode($node)   

7、如果想使用env缓存(目前支持文件类型的缓存)
    use zk;

        zk::putZkEnv() 

All versions of zookeeper-node-cache with dependencies

PHP Build Version
Package Version
Requires predis/predis Version ^1.1
php Version >=7.0.0
ext-zookeeper Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yykpf/zookeeper-node-cache contains the following files

Loading the files please wait ....