Download the PHP package overphp/upload without Composer

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

Laravel-upload 文件上传扩展包

laravel-upload 是一个用于文件异步上传的扩展包。

安装

安装扩展包

配置网络访问

默认上传文件存储在storage/app/public目录下,如果需要上传文件能够通过网络访问,需要创建 pulic/storagestorage/app/public 的符号链接。

参考 https://laravel.com/docs/5.5/filesystem

必须修改 .env 文件 "APP_URL" 为实际的url,或者是设置为空(将会使用浏览器路径)

使用中间件实现上传权限管理

默认任何人可以上传文件,如果需要进行上传权限控制,请自行定义中间件,并在 config/upload.php 中修改 middleware 的值为定义的中间件名称。

参数配置

参数配置参考 config/upload.php 及注释内容

使用上传后端

上传组件返回值示例

默认为json格式

上传地址

自定义

请参考 Overphp\Upload\Upload.php 文件以及 Overphp\Upload\UploadController.php 文件。

结合jquery.upload.js插件使用

jquery.upload.js 上传插件在 jquery.fileupload.js 插件基础上进行了简单封装。
同时依赖 layer.js 来进行加载层和消息提示。

发布jquery.upload.js文件

如果需要修改插件发布的路径,可以修改upload.assets_path为需要的路径即可。

jquery.upload.js 参数说明

名称 类型 必须 示例值 描述
type string false image 文件上传类型,默认:file,可选值:imagefile
url string false 文件上传url地址,默认为空,默认根据type参数自动设置,不为空时type参数无效。
val string true '#abc' 文件上传成功后返回的文件url地址写入对象。
src string true '#image' 图片文件上传成功后返回的图片url地址写入 img标签对象,仅typeimage时有效。
callback callback false 自定义返回结果处理,使用本参数时,除了type属性,其他全部无效。
load bool false false 是否显示加载层,默认显示

使用插件

文件上传
图片上传

自定义回调


All versions of upload with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version 5.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 overphp/upload contains the following files

Loading the files please wait ....