iamgold/doublesfs

There is no license information available for the latest version (1.0.3) of this package.

This This is a lightweight library of file system in PHP. It provides a simple interface to swift access file, so named DoublesFS.

Installs: 2 046

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/iamgold/doublesfs

1.0.3 2019-12-02 07:03 UTC

This package is auto-updated.

Last update: 2025-09-13 06:43:46 UTC


README

This This is a lightweight library of file system in PHP. It provides a simple interface to swift access file, so named DoublesFS.

Install

composer require iamgold/doublesfs

Support

  • Local disk storage
  • AWS S3 (comming soon)

Usage

use iamgold\doublesfs\storages\LocalStorage;

$config = [
    'sourcePath' => __DIR__ . '/source'
];

$storage = new LocalStorage($config);

// put file
(bool) $storage->put($source, $key, $options);

// put contents
(bool) $storage->putContents($contents, $key, $options);

// delete file
(bool) $storage->delete($key);