nedmas/laravel-fortrabbit-storage

This Laravel package provides a storage driver for the Fortrabbit Object Storage.
6 2
Install
composer require nedmas/laravel-fortrabbit-storage
PHP:~5.6|~7.0
License:MIT
Last Updated:Oct 6, 2016
Links: GitHub  ·  Packagist
Maintainer: nedmas

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 nedmas@mavenfortytwo.co.uk instead of using the issue tracker.

Credits

License

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

Related Packages

fortrabbit/laravel-object-storage

Flysystem adapter for fortrabbit Object Storage

11,255 3
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,315 160
laravel-ja/laravel

The Laravel Framework.

5,667 17
kavenegar/laravel

laravel 4 and 5 kavenegar integration

368,693 86
reliese/laravel

Reliese Components for Laravel Framework code generation.

3,991,690 1,705