codelego/phpfox-storage

Storage library for phpfox framework.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

pkg:composer/codelego/phpfox-storage

dev-master 2016-11-29 10:44 UTC

This package is not auto-updated.

Last update: 2025-09-28 01:54:41 UTC


README

=====================================

local path or real path.

echo  $storage->url('local', 'profile/picture/sample_01.png');
// print http://www.yoursite.com/path/to/profile/picture/sample_01.png

Or

print http://bucket-s3.amazone.com/path/to/profile/picture/sample_01.png

Move file from local

$data = $storage->move('s3', $filename,  'profile/picture/sample_01.png');

Copy from local

$data = $storage->copy('s3', $filename,  'profile/picture/sample_01.png');

Copy to local

$data = $storage->localCopy('s3', $filename,  'profile/picture/sample_01.png');

Delete object

$data = $storage->remove('s3', $filename,  'profile/picture/sample_01.png');