llpddone / selectel-transmitter
File transmitter to selectel
0.0.1
2023-05-27 18:37 UTC
Requires
- php: ^8.0
- ext-curl: *
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^10.0 || ^9.0 || >=8.40.0 || ^7.0
Requires (Dev)
- orchestra/testbench: ^3.8
This package is not auto-updated.
Last update: 2024-10-27 01:32:19 UTC
README
File transmitter to selectel (S3 object storage).
Installation
This project using composer.
$ composer require llpddone/selectel-transmitter
Run
$ php artisan vendor:publish
Use
$file = $request->file('YOUR_KEY'); $outputFileName = time(); $inputExtension = $file->extension(); $inputFileName = $file->getFilename() SelectelTransmitter::saveFile( inputPath: '/tmp', inputFileName: 'fileName', outputFileName: $outputFileName . '.' . $inputExtension );
Fill in the properties in .env according to the keys from the config or change the configuration.