siddik-web / s3-bucket-manager
Laravel package for managing AWS S3 bucket operations
Requires
- php: ^7.3|^8.0
- aws/aws-sdk-php: ^3.0
Requires (Dev)
- phpunit/phpunit: ^11.4
This package is auto-updated.
Last update: 2024-12-13 17:51:50 UTC
README
Description
The S3 Bucket Manager is a Laravel package designed to simplify the management of AWS S3 bucket operations. It provides a straightforward interface for performing various file operations such as listing, retrieving, creating, updating, and deleting files in an S3 bucket.
Features
- List files in an S3 bucket
- Upload files to an S3 bucket
- Download files from an S3 bucket
- Delete files from an S3 bucket
- Error handling with logging for failed operations
Requirements
- PHP version: ^7.3|^8.0
- Laravel framework
Installation
You can install the package via Composer. Run the following command in your terminal:
composer require siddik-web/s3-bucket-manager
Configuration
After installing the package, you need to publish the configuration file. Run the following command:
php artisan vendor:publish --provider="RocksCoder\S3BucketManager\S3BucketManagerServiceProvider"
This will create a s3-bucket-manager.php
file in your config
directory. You can customize the configuration options in this file to suit your needs.
Usage
To use the S3 Bucket Manager in your Laravel application, you can inject it into your controllers or services using the app()
function:
$s3BucketManager = app('s3-bucket-manager');
Testing
To run the tests for the package, use the following command:
composer test
License
This package is open-sourced software licensed under the MIT license.
Author
Md Siddiqur Rahman
- Email: siddikcoder@gmail.com
- GitHub: @siddik-web
Links
Issues
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
Contributing
We welcome contributions to improve the package. Please see the CONTRIBUTING.md file for guidelines on how to submit improvements and bug fixes.