PHPackages                             micro-lib/variable-value - 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. micro-lib/variable-value

ActiveLibrary

micro-lib/variable-value
========================

Library for Variable Values

v2.0.0(8y ago)164MITPHPPHP &gt;=7.0

Since Jun 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/micro-lib/variable-value)[ Packagist](https://packagist.org/packages/micro-lib/variable-value)[ RSS](/packages/micro-lib-variable-value/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Variable Values
===============

[](#variable-values)

[![Build Status](https://camo.githubusercontent.com/b6b1254f70bd9e0ab164f1faea1d3bc7865535bc91bdc1d6e651ec4dca6e0d56/68747470733a2f2f7472617669732d63692e6f72672f6d6963726f2d6c69622f7661726961626c652d76616c75652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/micro-lib/variable-value)

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
------------

[](#installation)

```
composer require micro-lib/variable-value

```

Usage
-----

[](#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`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3172d ago

Major Versions

1.0.0 → v2.0.02017-09-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6c401e23bdec8bdfdf74451ef702d6b66db3417fdf2a22440694ff9a7fd6017?d=identicon)[pawski](/maintainers/pawski)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/micro-lib-variable-value/health.svg)

```
[![Health](https://phpackages.com/badges/micro-lib-variable-value/health.svg)](https://phpackages.com/packages/micro-lib-variable-value)
```

PHPackages © 2026

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