LaravelPackages.net
Acme Inc.
Toggle sidebar
nedmas/laravel-fortrabbit-storage

This Laravel package provides a storage driver for the Fortrabbit Object Storage.

6
2
About nedmas/laravel-fortrabbit-storage

nedmas/laravel-fortrabbit-storage is a Laravel package for this laravel package provides a storage driver for the fortrabbit object storage.. It currently has 2 GitHub stars and 6 downloads on Packagist. Install it with composer require nedmas/laravel-fortrabbit-storage. Discover more Laravel packages by nedmas or browse all Laravel packages to compare alternatives.

Last updated

Laravel driver for Fortrabbit Object Storage

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

This Laravel package provides a storage driver for the Fortrabbit Object Storage.

Install

Via Composer

$ composer require nedmas/laravel-fortrabbit-storage

Configuration

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']
],

Usage

Storage::disk('fortrabbit')->put('file.txt', 'Contents');

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments