Skip to content

This package enables storing, updating, and retrieving stored data, in a local directory.

License

Notifications You must be signed in to change notification settings

form-synergy/fs-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FormSynergy.com File Storage

This package enables storing, updating, and retrieving stored data, in a local directory.

Install using composer

composer require form-synergy/fs-storage

Include the library

require '/vendor/autoload.php';

Create a new storage

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

Storing data

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

Updating data

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

Retrieving data

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

About

This package enables storing, updating, and retrieving stored data, in a local directory.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages