Download the PHP package huijiewei/yii2-upload without Composer

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

yii2-upload

Yii2 下的一个上传组件, 支持直传到第三方云存储。

安装

配置及使用

本地存储

云存储

componentId 自定义

如果想要使用多个存储引擎,可以定义不同的 componentId

然后设置 widget 和 action 的 uploadDriver 属性为对应的 componentId 即可

直传到云存储

该组件支持直传到第三方云存储,实际上就是模拟了表单上传的方式。从流程上来说相比于传统的先上传到服务器,再从服务器传到云存储来说,少了一步转发。从架构上来说,原来的上传都统一走网站服务器,上传量过大时,瓶颈在网站服务器,可能需要扩容网站服务器。采用表单上传后,上传都是直接从客户端发送到云存储。上传量过大时,压力都在云存储上,由云存储来保障服务质量。

目前支持的第三方云储存: 本地(LocalFile) 腾讯云(TencentCOS) 阿里云(AliyunOSS) 七牛(Qiniu)

其中的本地不算云存储,只是标识仍旧支持本地磁盘存储。

扩展

当然,你也可以拓展支持的云存储,继承 BaseUpload 并实现对应的方法即可

License

MIT


All versions of yii2-upload with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
ext-json Version *
yiisoft/yii2 Version ^2.0
yiisoft/yii2-imagine Version ^2.1
yiisoft/yii2-bootstrap Version ^2.0
npm-asset/blueimp-file-upload Version ^10.31.0
npm-asset/cropperjs Version ^1.5
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 huijiewei/yii2-upload contains the following files

Loading the files please wait ....