All Projects → overtrue → flysystem-cos

overtrue / flysystem-cos

Licence: other
💾 Flysystem adapter for the Qcloud COS storage.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to flysystem-cos

laravel-filesystem-cos
Tencent Cloud COS storage for Laravel based on overtrue/flysystem-cos.
Stars: ✭ 56 (-1.75%)
Mutual labels:  flysystem-adapter, qcloud-cos
librarify-back
Librarify. Creando una API con Symfony 5 es un curso completo sobre Symfony 5 en el que cuento cómo desarrollar una API desde cero empleando FOS Rest Bundle.
Stars: ✭ 30 (-47.37%)
Mutual labels:  flysystem, flysystem-adapter
flysystem-google-cloud-storage
Flysystem v1 adapter for Google Cloud Storage
Stars: ✭ 21 (-63.16%)
Mutual labels:  flysystem
flysystem-rackspace
Flysystem Adapter for Rackspace
Stars: ✭ 34 (-40.35%)
Mutual labels:  flysystem-adapter
yii2-flysystem-component
The League Flysystem Library for Yii Framework
Stars: ✭ 22 (-61.4%)
Mutual labels:  flysystem
cossync
腾讯云COS同步(批量上传)工具
Stars: ✭ 23 (-59.65%)
Mutual labels:  qcloud
flysystem-sync
Filesystem sync using Flysystem project.
Stars: ✭ 26 (-54.39%)
Mutual labels:  flysystem
flysystem-stream-wrapper
Provides the ability to register Flysystem filesystems as stream wrappers.
Stars: ✭ 59 (+3.51%)
Mutual labels:  flysystem
cos-go-sdk-v5
Tencent cloud object storage service client 5.0 xml version __腾讯cos-go-sdk-v5__
Stars: ✭ 34 (-40.35%)
Mutual labels:  qcloud
wecube-plugins-qcloud
WeCube plugin for Tencent Cloud
Stars: ✭ 74 (+29.82%)
Mutual labels:  qcloud
aliyun-oss-laravel
Laravel 的 Aliyun OSS 扩展, 支持 Laravel 9. Alibaba Cloud Object Storage Service For Laravel.
Stars: ✭ 91 (+59.65%)
Mutual labels:  flysystem-adapter
flysystem-azure-blob-storage
No description or website provided.
Stars: ✭ 52 (-8.77%)
Mutual labels:  flysystem-adapter
flysystem-memory
Flysystem Memory Adapter
Stars: ✭ 62 (+8.77%)
Mutual labels:  flysystem-adapter
flysystem-curlftp
Flysystem Adapter for the FTP with cURL implementation
Stars: ✭ 36 (-36.84%)
Mutual labels:  flysystem
wqcloud
腾讯云Node.js Open API SDK(完整版)
Stars: ✭ 16 (-71.93%)
Mutual labels:  qcloud
mediasort
Upload manager using Laravel's built-in Filesystem/Cloud Storage
Stars: ✭ 20 (-64.91%)
Mutual labels:  flysystem
gulp-upload-qcloud
腾讯云 cos 静态资源上传 gulp 插件
Stars: ✭ 18 (-68.42%)
Mutual labels:  qcloud
Kodexplorer
A web based file manager,web IDE / browser based code editor
Stars: ✭ 5,490 (+9531.58%)
Mutual labels:  flysystem
ddns
a multiple providers ddns script without dependencies
Stars: ✭ 47 (-17.54%)
Mutual labels:  qcloud
qcloud-cos-client
Tencent COS Client
Stars: ✭ 35 (-38.6%)
Mutual labels:  qcloud-cos

Flysystem QCloud COS


💾 Flysystem adapter for the Qcloud COS storage.

Build Status Latest Stable Version Latest Unstable Version Total Downloads License

Sponsor me

Requirement

  • PHP >= 8.0.2

Installation

$ composer require overtrue/flysystem-cos -vvv

Usage

use League\Flysystem\Filesystem;
use Overtrue\Flysystem\Cos\CosAdapter;

$config = [
    // 必填,app_id、secret_id、secret_key 
    // 可在个人秘钥管理页查看:https://console.cloud.tencent.com/capi
    'app_id' => 10020201024, 
    'secret_id' => 'AKIDsiQzQla780mQxLLU2GJCxxxxxxxxxxx', 
    'secret_key' => 'b0GMH2c2NXWKxPhy77xhHgwxxxxxxxxxxx',

    'region' => 'ap-guangzhou', 
    'bucket' => 'example',
    
    // 可选,如果 bucket 为私有访问请打开此项
    'signed_url' => false,
    
    // 可选,是否使用 https,默认 false
    'use_https' => true, 
    
    // 可选,自定义域名
    'domain' => 'emample-12340000.cos.test.com', 
    
    // 可选,使用 CDN 域名时指定生成的 URL host
    'cdn' => 'https://youcdn.domain.com/',
];

$adapter = new CosAdapter($config);

$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->move('foo.md', 'bar.md');

bool $flysystem->copy('foo.md', 'foo2.md');

bool $flysystem->delete('file.md');

bool $flysystem->fileExists('file.md');

string|mixed|false $flysystem->read('file.md');

array $flysystem->listContents();

int $flysystem->fileSize('file.md');

string $flysystem->mimeType('file.md');

int $flysystem->lastModified('file.md');

❤️ Sponsor me

Sponsor me

如果你喜欢我的项目并想支持它,点击这里 ❤️

Project supported by JetBrains

Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects.

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].