overtrue / Flysystem Qiniu
💾 Flysystem adapter for the Qiniu storage.
Stars: ✭ 192
Projects that are alternatives of or similar to Flysystem Qiniu
Uptoc
A static file deployment tool that supports multiple platforms./ 一个支持多家云厂商的静态文件部署工具
Stars: ✭ 159 (-17.19%)
Mutual labels: qiniu, storage
Carrierwave Qiniu
Qiniu Storage support for CarrierWave
Stars: ✭ 179 (-6.77%)
Mutual labels: qiniu, storage
Udisks
The UDisks project provides a daemon, tools and libraries to access and manipulate disks, storage devices and technologies.
Stars: ✭ 170 (-11.46%)
Mutual labels: storage
Remotestorage.js
⬡ JavaScript client library for integrating remoteStorage in apps
Stars: ✭ 2,155 (+1022.4%)
Mutual labels: storage
Picgo
🚀A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder
Stars: ✭ 15,358 (+7898.96%)
Mutual labels: qiniu
Sharesniffer
Network share sniffer and auto-mounter for crawling remote file systems
Stars: ✭ 168 (-12.5%)
Mutual labels: storage
Github Stars Manager
Chrome extension that allows you to manage your Github stars with tags, and to create a bookmark folder with all your stars organized by the tags you created
Stars: ✭ 183 (-4.69%)
Mutual labels: storage
Rxpaper
Reactive extension for NoSQL data storage on Android
Stars: ✭ 179 (-6.77%)
Mutual labels: storage
Amplify Cli
The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Stars: ✭ 2,399 (+1149.48%)
Mutual labels: storage
Storage
HTML5 Storage API implementation for Microsoft Blazor
Stars: ✭ 180 (-6.25%)
Mutual labels: storage
Maya
Manage Container Attached Storage (CAS) - Data Engines in Kubernetes
Stars: ✭ 169 (-11.98%)
Mutual labels: storage
Upic
📤uPic is a native, powerful, beautiful and simple picture and file upload tool for macOS.
Stars: ✭ 2,465 (+1183.85%)
Mutual labels: qiniu
Kvdo
A pair of kernel modules which provide pools of deduplicated and/or compressed block storage.
Stars: ✭ 168 (-12.5%)
Mutual labels: storage
Put.io Adder
OS X put.io client that acts as handler for magnet: links and .torrent files, and adds them to your put.io download queue
Stars: ✭ 172 (-10.42%)
Mutual labels: storage
Tus Ruby Server
Ruby server for tus resumable upload protocol
Stars: ✭ 172 (-10.42%)
Mutual labels: storage
Flysystem Qiniu
💾 Flysystem adapter for the Qiniu storage.
Requirement
- PHP >= 5.5.9
Installation
$ composer require "overtrue/flysystem-qiniu" -vvv
Usage
use League\Flysystem\Filesystem;
use Overtrue\Flysystem\Qiniu\QiniuAdapter;
use Overtrue\Flysystem\Qiniu\Plugins\FetchFile;
$accessKey = 'xxxxxx';
$secretKey = 'xxxxxx';
$bucket = 'test-bucket-name';
$domain = 'xxxx.bkt.clouddn.com'; // or with protocol: https://xxxx.bkt.clouddn.com
$adapter = new QiniuAdapter($accessKey, $secretKey, $bucket, $domain);
$flysystem = new League\Flysystem\Filesystem($adapter);
API
bool $flysystem->write('file.md', 'contents');
bool $flysystem->write('file.md', 'http://httpbin.org/robots.txt', ['mime' => 'application/redirect302']);
bool $flysystem->writeStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));
bool $flysystem->update('file.md', 'new contents');
bool $flysystem->updateStream('file.md', fopen('path/to/your/local/file.jpg', 'r'));
bool $flysystem->rename('foo.md', 'bar.md');
bool $flysystem->copy('foo.md', 'foo2.md');
bool $flysystem->delete('file.md');
bool $flysystem->has('file.md');
string|false $flysystem->read('file.md');
array $flysystem->listContents();
array $flysystem->getMetadata('file.md');
int $flysystem->getSize('file.md');
string $flysystem->getAdapter()->getUrl('file.md');
string $flysystem->getMimetype('file.md');
int $flysystem->getTimestamp('file.md');
Plugins
File Url:
use Overtrue\Flysystem\Qiniu\Plugins\FileUrl;
$flysystem->addPlugin(new FileUrl());
string $flysystem->getUrl('file.md');
Fetch file:
use Overtrue\Flysystem\Qiniu\Plugins\FetchFile;
$flysystem->addPlugin(new FetchFile());
bool $flysystem->fetch('file.md', 'http://httpbin.org/robots.txt');
Upload Token:
use Overtrue\Flysystem\Qiniu\Plugins\UploadToken;
$flysystem->addPlugin(new UploadToken());
string $flysystem->getUploadToken('file.md', 3600);
File private download Url:
use Overtrue\Flysystem\Qiniu\Plugins\PrivateDownloadUrl;
$flysystem->addPlugin(new PrivateDownloadUrl());
string $flysystem->privateDownloadUrl('file.md');
Integration
- Laravel 5: overtrue/laravel-filesystem-qiniu
- Yii2: krissss/yii2-filesystem-qiniu
PHP 扩展包开发
想知道如何从零开始构建 PHP 扩展包?
请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].