micro-lib/variable-value 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

micro-lib/variable-value

Composer 安装命令:

composer require micro-lib/variable-value

包简介

Library for Variable Values

README 文档

README

Build Status

Intention of Variable Values is to provide means for defined way of updating values of variables (for example configuration parameters) in long running processes.

For instance we might want to change connection timeout of our Http Client which is used php worker. Once worker is started and configuration is read from, let's say some database there is no way of changing it other than restarting worker. One solution would be to read configuration each time Http Client is trying to make a request. Although this is working solution it is not a very efficient one.

What if we get a way to read configuration from source in more smart way, like each n-th variable access or with some TTL value?

Variable Values brings this possibility.

Installation

composer require micro-lib/variable-value

Usage

Please check code samples in /examples folder.

In order to run examples please:

  • clone repository
  • run composer install
  • run php ./examples/datetime.php
  • run php ./examples/readnum.php

统计信息

  • 总下载量: 64
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固