synapsestudios/synapse-files
最新稳定版本:v1.1.0
Composer 安装命令:
composer require synapsestudios/synapse-files
包简介
Filesystem services, controllers, etc
README 文档
README
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
统计信息
- 总下载量: 2.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-13