noccylabs/stateful

$ git tag


$ git branch
* master

Stateful: Manage application state

This library is intended to be used for configuration and other configurable key-value pairs.

Installing

Using composer:

$ composer require noccylabs/stateful

Creating a state

$state = new NoccyLabs\Stateful\State($statefile);

Writing values

$state->update($updatedvalues);
$state->flush();

Reading values

$value = $state->get($key);
$values = $state->getAll();