承接 ibox/uploader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ibox/uploader

Composer 安装命令:

composer require ibox/uploader

包简介

File uploader for laravel framework.

README 文档

README

This package take advantage of the Laravel Filesytem library.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require ibox/uploader

"require": {
    "ibox/uploader": "~1.0"
}

Next, update Composer from the terminal:

composer update

Configure

In config/filesystems.php update default key. This library will upload all files to the default option. If you are uploading locally also update the root key to define were the files will be stored.

Usage

Example:

In your HTML:

<form action="/images" enctype="multipart/form-data" method="post">
	<input type="file" name="image" multiple="multiple" required />
    <input type="submit" value="Upload" />
</form>

In your controller:

<?php

use Ibox\Uploader\Uploader;
class ImagesController extends Controller 
{

	public function store(Request $request, Uploader $uploader)
    {
        $path = 'some/path';
        $imageNames = $uploader->upload($request->file(), $path);
    }

}

NOTE: The secong parameter ($path), will only work for cloud storage, check config section.

Next features

Enable queue to faster responses.

License

This package is open source software licensed under the MIT license

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固