Skip to content

A simple key-value store to save data in an array and serialized them so they can be stored in the database as text

License

Notifications You must be signed in to change notification settings

cybersai/ussd-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UssdStore

Packagist Version Travis (.com) GitHub repo size GitHub

A simple key-value store to save data in an array and serialized them so they can be stored in the database as text.

No Real Documentaion for now, but for now you can read the tests.

include 'vendor/autoload.php';

use Cybersai\UssdStore\UssdStore;

$store = UssdStore(['name' => 'Ussd App']); // Can initialized it with options data
$store(['phone' => '0545123456']); // Can set data by invoking with array
$store->account_number = '03011231231321'; // can set data using dynamic properties
$store->set('user_type', 'registered'); // can set data explicitlly

echo $store->get('name'); // can retrieve data with one of the few available methods
print_r($store->toArray()); // get all data as array key-value pair

Installation

composer require cybersai/ussd-store

About

A simple key-value store to save data in an array and serialized them so they can be stored in the database as text

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages