Package Data | |
---|---|
Maintainer Username: | nedmas |
Maintainer Contact: | nedmas@mavenfortytwo.co.uk (Tom Densham) |
Package Create Date: | 2016-10-04 |
Package Last Update: | 2016-10-06 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-29 15:10:45 |
Package Statistics | |
---|---|
Total Downloads: | 6 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 1 |
This Laravel package provides a storage driver for the Fortrabbit Object Storage.
Via Composer
$ composer require nedmas/laravel-fortrabbit-storage
First follow the install guide from Fortrabbit for configuring the Object Storage.
Then rename the disk from s3
to fortrabbit
and replace the s3
driver with fortrabbit
.
Finally you need to add an additional config key for host
which retrieves the value from the app secrets array.
'fortrabbit' => [
'driver' => 'fortrabbit',
'key' => $secrets['OBJECT_STORAGE']['KEY'],
'secret' => $secrets['OBJECT_STORAGE']['SECRET'],
'bucket' => $secrets['OBJECT_STORAGE']['BUCKET'],
'endpoint' => 'https://'. $secrets['OBJECT_STORAGE']['SERVER'],
'region' => $secrets['OBJECT_STORAGE']['REGION'],
'host' => $secrets['OBJECT_STORAGE']['HOST']
],
Storage::disk('fortrabbit')->put('file.txt', 'Contents');
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email nedmas@mavenfortytwo.co.uk instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.