$handlers
$handlers : array
A list of valid handlers and their file extensions
Current options are json
, sqlite
, and ini
.
A simple class to manage configuration for workflows
Currently, there are three handlers that are available: json
, sqlite
, and
ini
. These correspond to their obvious data storage types. To use, do something
simple like:
$config = new Alphred\Config( 'ini' );
$config->set( 'username', 'shawn patrick rice' );
To get it later, just use:
$username = $config->read( 'username' );
You can store arrays and more complex data with the json
and ini
handlers.
Currently, the SQLite3 handler is a bit primitive.