lemesdaniel / s3forme-laravel by lemesdaniel

Laravel service provider s3for.me
153
4
3
Package Data
Maintainer Username: lemesdaniel
Maintainer Contact: dlemes@gmail.com (Daniel Lemes)
Package Create Date: 2016-08-12
Package Last Update: 2016-09-12
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:12:39
Package Statistics
Total Downloads: 153
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 3
Total Forks: 0
Total Open Issues: 1

s3forme-laravel

Requirements

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

Installation

Using Composer:

composer require lemesdaniel/s3forme

Usage

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

'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:

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