biigle / laravel-aruna-driver
此包已被弃用,不再维护。未建议替代包。
Laravel/Lumen的Aruna对象存储存储驱动程序。
v1.2
2023-09-28 08:14 UTC
Requires
- biigle/flysystem-aruna: ^1.0
- illuminate/filesystem: ^9.0 || ^10.0
- illuminate/support: ^9.0 || ^10.0
README
⚠️ 由于AOS存储磁盘可以通过S3协议使用,此包现已存档。
Aruna对象存储存储驱动程序,适用于Laravel/Lumen。
安装
使用Composer安装此包
composer require biigle/laravel-aruna-driver
Laravel
服务提供程序会自动检测。
Lumen
将服务提供程序添加到bootstrap/app.php
$app->register(Biigle\Filesystem\Aruna\ArunaServiceProvider::class);
配置
在config/filesystems.php
中添加新的存储磁盘
'disks' => [ 'aruna' => [ 'driver' => 'aruna', // The bucket name consists of the collection version (or latest), the // collection name and the project name. 'bucket' => 'latest.collection-name.project-name', 'collectionId' => 'MYARUNACOLLECTIONULID', 'apiUri' => 'https://api.aruna-storage.org', // The bucket name MUST be included in the endpoint URL. 'endpoint' => 'https://latest.collection-name.project-name.data.gi.aruna-storage.org', 'key' => env('ARUNA_S3_KEY', ''), 'secret' => env('ARUNA_S3_SECRET', ''), 'token' => env('ARUNA_API_TOKEN', ''), ], ]
其他配置选项
prefix
(默认:null
): 用于所有文件路径的前缀。
资金支持
本工作得到德国研究基金会(DFG)在“建立国家研究数据基础设施(NFDI)”项目中的支持,该项目由NFDI4Biodiversity联盟(项目编号442032008)实施。