Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lemesdaniel committed Aug 12, 2016
1 parent 04e531f commit 67811ac
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
s3forme-laravel
-------------

Requirements
------------

* laravel >= 5.1
* league/flysystem-aws-s3-v2 >=1.0 (retrieved automatically via Composer)

Installation
------------

Using Composer:

```sh
composer require lemesdaniel/s3forme-laravel
```


Usage
------------

In your config/flysystem.php file set the default driver to 's3forme' and add the connection configuration like so:

```php
'default' => 's3forme',

'cloud' => 's3forme',

'disks' => [
...
's3forme' => [
'key' => 'you-key',
'secret' => 'you-secret-key',
'visibility' => 'public-read', // or private
'bucket' => 'image', //name your bucket
'endpoint' => 'http://rest.s3for.me',
],
...
]
```

In your config/app.php file add the following provider to your service providers array:

```php
'providers' => [
...
Lemesdaniel\S3forme\Providers\S3formeFilesystemServiceProvider::class,
...
]
```

0 comments on commit 67811ac

Please sign in to comment.