PHP code example of bpartner / storage
1. Go to this page and download the library: Download bpartner/storage 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/ */
bpartner / storage example snippets
use Bpartner\Storage\StorageInMemory;
$key = 'user';
$value = [
'first_name' => 'John',
'last_name' => 'Doe',
'email' => '[email protected]'
];
StorageInMemory::setParam($key, $value);
use Bpartner\Storage\StorageInMemory;
$user = StorageInMemory::getParam('user');
echo $user['first_name'];