承接 coderatio/uploadia 相关项目开发

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

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

coderatio/uploadia

Composer 安装命令:

composer require coderatio/uploadia

包简介

A flexible PHP file upload library

README 文档

README

A flexible PHP file upload library

Download

composer require coderatio/uploadia

Or Clone this repo.

Usage

require 'vendor/autoload.php'; // if you downloaded via composer
// OR
require 'pathtouploadia/src/Uploadia.php';

$uploadia = new Coderatio\Uploadia\Uploadia();
$uploadia->setDir('uploads')
    ->setExtensions(['jpg', 'png', 'jpeg', 'gif'])
    ->setMaxSize(1); // In megabytes. 1MB
    
// There are several methods to use. e.g $uploadia->allowAllFormats()
// $uploadia->sameName($bool) takes a boolean. e.t.c
    
if($uploadia->uploadFile('photo') {
     // photo is the file input name.
     // Get the uploaded file name or get error message.
     
     $uploadia->getUploadName(); // Returns uploaded file name;
     $uploadia->getMessage(); // Returns error messages
}

Contribution

Fork the project and send pull request, email me via josiahoyahaya@gmail.com, find me on Twitter and say something about it anywhere possible.

Licence

This project is licenced under MIT license.

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固