Laravel driver for Fortrabbit Object Storage
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
This Laravel package provides a storage driver for the Fortrabbit Object Storage., (*2)
Install
Via Composer, (*3)
``` bash
$ composer require nedmas/laravel-fortrabbit-storage, (*4)
## Configuration
First follow the install guide from Fortrabbit for configuring the
[Object Storage](https://help.fortrabbit.com/install-laravel-5#toc-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.
``` php
'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']
],
Usage
``` php
Storage::disk('fortrabbit')->put('file.txt', 'Contents');, (*5)
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Testing
``` bash
$ composer test
Contributing
Please see CONTRIBUTING for details., (*6)
Security
If you discover any security related issues, please email nedmas@mavenfortytwo.co.uk instead of using the issue tracker., (*7)
Credits
License
The MIT License (MIT). Please see License File for more information., (*8)