2017 © Pedro Peláez
 

library php-storage

image

c3/php-storage

  • Friday, March 30, 2018
  • by christoph-bessei
  • Repository
  • 0 Watchers
  • 0 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 86 % Grown

The README.md

PHP Storage

Usage

Create storage object

$storage = StorageFactory::create(
    StorageTypeEnum::WEB_DAV(),
    'https://webdav.example.com',
    [
        'prefix' => 'basePathToWebDAV/',
        'userName' => 'user',
        'password' => 'password',
    ]
);

Stream remote file to local file system

$this->storage->download('remotePathInsideWebDAV/test.txt', 'localPath/test.txt');

Get remote file content

$content = $this->storage->downloadContent('remotePathInsideWebDAV/test.txt');

Sync remote folder structure to local filesystem (recursive)

$localFile = new \SplFileInfo('localPath/');
storage->syncRemoteToLocal('remotePathInsideWebDAVRoot/', $localFile,true);

Credits

The Versions

30/03 2018

dev-parallel-processing

dev-parallel-processing

  Sources   Download

AGPL-3.0-or-later

The Requires

 

by clubdrei.com Medienagentur OG

30/03 2018

dev-master

9999999-dev

  Sources   Download

AGPL-3.0-or-later

The Requires

 

by clubdrei.com Medienagentur OG