2017 © Pedro Peláez
 

library variable-value

Library for Variable Values

image

micro-lib/variable-value

Library for Variable Values

  • Wednesday, November 15, 2017
  • by pawski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Variable Values

Build Status, (*1)

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

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., (*3)

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?, (*4)

Variable Values brings this possibility., (*5)

Installation

composer require micro-lib/variable-value

Usage

Please check code samples in /examples folder., (*6)

In order to run examples please: - clone repository - run composer install - run php ./examples/datetime.php - run php ./examples/readnum.php, (*7)

The Versions

15/11 2017

dev-master

9999999-dev

Library for Variable Values

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Paweł Czyżewski

07/09 2017

v2.0.0

2.0.0.0

Library for Variable Values

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Paweł Czyżewski

23/06 2017

1.0.0

1.0.0.0

Library for Variable Values

  Sources   Download

MIT

The Development Requires

by Paweł Czyżewski