PHP code example of byjg / anydataset-nosql

1. Go to this page and download the library: Download byjg/anydataset-nosql 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/ */

    

byjg / anydataset-nosql example snippets


$store = Factory::getInstance('s3://key:secret@us-east-1/my-bucket');        // AWS S3
$store = Factory::getInstance('kv://user:token@account/namespace');          // Cloudflare KV
$store = Factory::getInstance('dynamodb://key:secret@host/table');           // DynamoDB

$store->put('invoice-42', $pdf);
$pdf = $store->get('invoice-42');