dumpk / esetres by nicolasbistolfi

Laravel AWS S3 Service Integration
20,542
7
2
Package Data
Maintainer Username: nicolasbistolfi
Maintainer Contact: nbistolfi@gmail.com (Nicolás Bistolfi)
Package Create Date: 2015-11-05
Package Last Update: 2017-07-11
Language: PHP
License: MIT
Last Refreshed: 2024-12-14 15:14:49
Package Statistics
Total Downloads: 20,542
Monthly Downloads: 139
Daily Downloads: 5
Total Stars: 7
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Esetres

Author Build Status Packagist

Laravel AWS S3 Service Integration to upload files.

Documentation

Installation

Require this package with composer:

composer require dumpk/esetres

Add this variables to your .env with your Amazon credentials

AWS_ACCESS_KEY_ID={AMAZONACCESSKEY}
AWS_SECRET_ACCESS_KEY={SECRETAMAZONSOMETHINGLONG}
AWS_REGION={YOURREGION}

Usage

Add the EsetresAWS class to your class header

use Dumpk\Esetres\EsetresAWS;

The class is a singleton so you only need to call the static methods.

To upload a file:

EsetresAWS::uploadFile($filepath, $key, $bucket);

To delete a file:

EsetresAWS::deleteFile($key, $bucket);

To make a file accesible to everyone:

EsetresAWS::makeFilePublic($key, $bucket);

To check for a file existance:

EsetresAWS::fileExists($key, $bucket);

If you want to get all the file information:

EsetresAWS::getObject($key, $bucket);

Optionally you can pass to the getObject method, a filepath to store the file on your server.

EsetresAWS::getObject($key, $bucket, "/var/www/filepath.txt");

Support

The following support channels can be used for contact.

Bug reports, feature requests, and pull requests can be submitted following our Contribution Guide.

Contributing & Protocols

Roadmap

Will look at future enhancements down the road.

License

This software is released under the MIT License.

© 2015 Nicolás Bistolfi (nbistolfi@gmail.com), All rights reserved.