PHP code example of x / store
1. Go to this page and download the library: Download x/store library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
x / store example snippets
$user->name;
$user['name'];
$user->traits = ['frugal', 'kleptomaniac'];
$user->traits->first(); // 'frugal'
$user['traits']->parent(); // goes back up to $user
$config->site->settings->maintenance = true;
$config->get('site.settings.maintenance'); // bool(true)
$array = ['testing' => 123];
$store = store($array); // or new X\Store\StoreCollection($array)