2017 © Pedro Peláez
 

library laravel-fortrabbit-storage

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

image

nedmas/laravel-fortrabbit-storage

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

  • Thursday, October 6, 2016
  • by nedmas
  • Repository
  • 1 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel driver for Fortrabbit Object Storage

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![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)

The Versions

06/10 2016

dev-master

9999999-dev https://github.com/nedmas/laravel-fortrabbit-storage

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

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel nedmas fortrabbit laravel-fortrabbit-storage