Recommend this page to a friend! |
Classes of Joseluis Laso | PHP AWS S3 SDK Wrapper | README.md | Download |
|
DownloadClassThis wrapper allows minimizing S3 access, maintaining a local cache (on server). Installationadd to the composer.json file of your project {
} and run or run
$s3 = new S3Wrapper($access, $secretm $bucket); $s3->getFileIfNewest($localFile, $remoteFile); // you have now the contents of $remoteFile on $localFile
$s3 = new S3Wrapper($access, $secretm $bucket); $s3->saveFile($remoteFile, $content);
$s3 = new S3Wrapper($access, $secretm $bucket); $fileList = $s3->getFilesList($path);
$s3 = new S3Wrapper($access, $secretm $bucket); $s3->deleteFile($localFile, $remoteFile);
|