Download the PHP package dtyq/cloudfile without Composer

On this page you can find all versions of the php package dtyq/cloudfile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cloudfile

cloud-file

.

介绍

本 sdk 为文件服务 sdk 增强版,提供了更多的功能,更加易用。

内置阿里云、火山云、文件服务的简单调用,只需几行代码即可完成文件的上传、下载、删除等操作。

支持后端直传模式,获取临时凭证后,后端直接上传文件到云存储,减少服务器压力。

可替换的FilesystemAdapter配置,自定义更强。

抽离文件服务通用功能到包中,可不依赖文件服务即可使用。

支持的云

重要功能

注意事项

如果要使用直连的阿里云、火山云,要先安装相应的FilesystemAdapter,如

或者在 config 配置中,增加driver参数,即FilesystemAdapter,由于包之间依赖兼容性问题,可能会有bug,但目前使用文件服务服务的机会比较多,先不管这个了,有问题再改改

安装

配置

文件服务特殊性

因为要请求文件服务,是需要动态 token 和 organization-code 的,这里需要放到 options 参数中,所有文件服务的请求,都需要带上,如下

使用

获取临时凭证

上传文件 - 通过临时凭证直传

上传完成后,记得查看$uploadFile->getKey(),来获取上传后的文件实际路径(因为文件服务会拼接 组织/应用 前缀)

复制文件

删除文件

批量获取可访问链接

请求文件服务时,不检测是否存在,直接返回链接

获取文件元数据

Hyperf 快捷使用

发布配置文件

使用

Hyperf 中使用 MinIO

MinIO 直连使用说明

配置要点

MinIO 是兼容 AWS S3 协议的对象存储,但对外配置仍使用 adapter=minio。使用时需要注意:

基本使用示例

MinIO 与 AWS S3 的区别


All versions of cloudfile with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
league/flysystem Version ^2.0
dtyq/sdk-base Version ~0.1
guzzlehttp/guzzle Version ^6.3|^7.0
ext-json Version *
ext-fileinfo Version *
ext-curl Version *
alibabacloud/sts Version ^1.8
aliyuncs/oss-sdk-php Version ^2.7
xxtime/flysystem-aliyun-oss Version ^1.6
volcengine/ve-tos-php-sdk Version ^2.1
volcengine/volc-sdk-php Version ^1.0
league/flysystem-aws-s3-v3 Version ^3.0
aws/aws-sdk-php Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dtyq/cloudfile contains the following files

Loading the files please wait ...