PHP code example of form-synergy / fs-storage

1. Go to this page and download the library: Download form-synergy/fs-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/ */

    

form-synergy / fs-storage example snippets




$local_directory = 'local-storage';
$resources = new FormSynergy\File_Storage($local_directory, 'fs-demo');

$data = [
    'key','value'
];
$resources->Store('exampleData')->Data($data);

$data = [
    'key','new value'
];
$resources->Update('exampleData')->Data($data);

$resources->Find('exampleData', 'key')->In('fs-demo');