2017 © Pedro Peláez
 

library phpfox-storage

Storage library for phpfox framework.

image

codelego/phpfox-storage

Storage library for phpfox framework.

  • Tuesday, November 29, 2016
  • by codelego
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

# phpfox-filestorage

>, (*1)

local path or real path., (*2)



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

Or, (*3)

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');

The Versions

29/11 2016

dev-master

9999999-dev

Storage library for phpfox framework.

  Sources   Download

MIT