Download the PHP package shuishuiafeng/webuploader-cropper without Composer

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

webuploader-cropper

此扩展集成webuploader图片上传插件webuploader.js和cropper.js实现的截图和多图上传,在bailangzhan/yii2-webuploader的基础上修改

安装

推荐使用composer进行安装

使用

params.php或者params-local.php内增加webuploader和domain配置项 php 'domain' => 'http://blog.m/',//目前用了阿里云所以这个域名暂时没用 'webuploader' => [ // 后端处理图片的地址,value 是相对的地址,是全局的处理图片地址,也可以在图片上传的前端小部件FileInput调用时候中覆盖掉,因为不同的图片上传调用的后台处理地址可能不同 'uploadUrl' => 'blog/upload', // 多文件分隔符 'delimiter' => ',', // 基本配置 'baseConfig' => [ 'defaultImage' => 'http://img1.imgtn.bdimg.com/it/u=2056478505,162569476&fm=26&gp=0.jpg',//项目文件web路径/img/default-img.jpg 'disableGlobalDnd' => true,//禁用掉浏览器拖拽打开新文件页面的功能 'accept' => [ 'title' => 'Images', 'extensions' => 'gif,jpg,jpeg,bmp,png', 'mimeTypes' => 'image/*', ], 'pick' => [ 'multiple' => false, ], ], ],


关于微信的配置也在params.php或者params-local.php内增加wechat_options的配置

###区分ActiveForm和非ActiveForm的基础使用

###单图无截图上传小部件

###单图截图上传
除了下面指出的部分,其他和上面的配置一致;

###多图上传
多图上传不会有截图功能,所以不用考虑,只需要区分是电脑端上传还是微信端上传即可,使用示例如下

控制器
进行上传文件操作的controller的地址可以在params.php或者params-local.php中配置 `Yii::$app->params['webuploader']['uploadUrl']`, 也可以在 FileInput的clientOptions中配置 `server` 项。控制器需要返回的数据格式如下

## 注意
如果是修改的多图片操作,务必保证 $model->file = 'src1,src2,src3,...'; 或者 $model->file = ['src1', 'src2'. 'src3', ...];

All versions of webuploader-cropper with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version >=2.0.4
aliyuncs/oss-sdk-php Version >=2.2.0
overtrue/wechat Version ~4.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 shuishuiafeng/webuploader-cropper contains the following files

Loading the files please wait ....