Download the PHP package szwtdl/storage without Composer

On this page you can find all versions of the php package szwtdl/storage. 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 storage

对象存储

统一封装阿里云 OSS、腾讯云 COS、七牛云 Kodo,所有驱动都实现 Szwtdl\Storage\Service\IService。

安装

基础配置

统一接口

返回结构

存储桶列表 listBuckets

对象列表 listObj

创建/删除存储桶

上传结果 upload

删除结果 delete

下载结果 download

临时凭证 getTemporaryCredentials

接口示例

1. 创建服务实例

2. 获取存储桶列表

2.1 获取临时凭证

阿里云 STS:

腾讯云 STS:

七牛上传 Token:

如果你已经从业务侧拿到了临时凭证,也可以直接透传:

3. 创建存储桶

4. 删除存储桶

5. 获取对象列表

不传参数时,默认返回当前 bucket 下文件列表:

按前缀筛选:

按目录层级列出:

如果配置了 options.domain,每一项都会包含完整访问地址:

6. 上传文件

7. 删除文件

8. 下载文件

Laravel 使用

发布配置:

使用容器:


All versions of storage with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
aliyuncs/oss-sdk-php Version ^2.7
qcloud/cos-sdk-v5 Version ^2.6
qiniu/php-sdk Version ^7.2
qcloud_sts/qcloud-sts-sdk 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 szwtdl/storage contains the following files

Loading the files please wait ...