Store and work with Nouns.
- Add it to your requirements
composer require chekote/noun-store$store = new \Chekote\NounStore\Store();$john = new Person();
$john->firstName = 'John';
$john->lastName = 'Smith';
$store->set('best friend', $john);$store->keyExists('best friend');$assert = new \Chekote\NounStore\Assert($store);
$assert->keyExists('best friend');$store->get('best friend');$chris = new Person();
$chris->firstName = 'Chris';
$chris->lastName = 'Pratt';
$store->set('best friend', $chris);$store->get('best friend');
or
$store->get('2nd best friend');$store->get('1st best friend');$store->reset();Install Docker.
You will also want to ensure that ./bin is in your $PATH and is the highest priority. You can do so by adding the
following to your shell profile:
export PATH=./bin:$PATHClone the repository:
git clone [email protected]:Chekote/noun-store.git
cd noun-storeTests are written using phpunit. You can execute them via the command line:
phpunit