This repository has been archived by the owner. It is now read-only.
DEPRECATED
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
schema
src
tests
.gitignore
Readme.md
composer.json
composer.lock
phpunit.xml

Readme.md

Synapse-Files

Installation: Add to composer.json and composer update!

Setup

To use: register the following services in your application:

    $app->register(new AwsServiceProvider());
    $app->register(new AwsCredentialsServiceProvider());
    $app->register(new FileServiceProvider());

Create a file.php config file with the following contents:

return [
    'filesystem' => 'local',
    'base_path'  => realpath(__DIR__.'/..').'/files',
];

For production, file config should be:

<?php
return [
    'filesystem' => 's3',
    'bucket'     => 'some-existing-bucket',
    'base_path'  => 'files',
];

The following environment variables MUST exist when using S3

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION