1. Go to this page and download the library: Download iak/keys 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/ */
use Iak\Key\Key;
// Using named parameters
Key::cache('product-data', productId: 123, variantId: 456);
// Using array parameters
Key::cache('product-data', [
'productId' => 123,
'variantId' => 456
]);
// Using parameter position
Key::cache('user.action', 123, 456);
// The result for all above: "product:123,variant:456"