Download the PHP package feehi/yii2-cdn without Composer

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

yii2 cdn

yii2 cdn,支持 七牛、网易云、腾讯云、阿里云的cdn。可以随时使用/取消yii2项目使用cdn。

安装

  1. 使用composer composer的安装以及国内镜像设置请点击此处

  2. 手动导入 下载yii2-cdn包后放置在任意目录 然后在yii2 index.php中

配置

yii2 cdn是作为一个组件提供服务的,所以得配置yii2 cdn组件。打开common/config/main.php在components块内增加

1.使用七牛的配置

2.使用阿里云的配置

3.使用腾讯云的配置

4.使用网易云的配置

5.不使用cdn时的配置(不需要修改代码文件)

示例

见examples/demo.php

说明

yii2 cdn集成了国内常用四个cdn厂商的sdk,以yii2组件的方式提供服务,屏蔽了厂商不同的api名称、调用方式。但是yii2 cdn只实现了几个常用的api:上传文件 分片上传 检测文件是否存在 删除文件。其他相应的操作需要自行实现。


All versions of yii2-cdn with dependencies

PHP Build Version
Package Version
Requires qiniu/php-sdk Version ^7.2
qcloud/cos-sdk-v5 Version >=1.0
netease/nos-php-sdk Version 1.0.0
aliyuncs/oss-sdk-php Version ~2.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 feehi/yii2-cdn contains the following files

Loading the files please wait ....