sukohi/plasticity
Composer 安装命令:
composer require sukohi/plasticity
包简介
Your package description here.
README 文档
README
A Laravel package to download file with utf8 file name. (This is for Laravel 5+. For Laravel 4.2)
Installation
Execute composer command.
composer require sukohi/plasticity:2.*
Register the service provider in app.php
'providers' => array(
...Others...,
Sukohi\Plasticity\PlasticityServiceProvider::class,
)
Also alias
'aliases' => array(
...Others...,
'Plasticity' => Sukohi\Plasticity\Facades\Plasticity::class,
)
Usage
$file = public_path('example.jpg');
$name = '日本語.jpg';
return Plasticity::download($file, $name);
License
This package is licensed under the MIT License.
Copyright 2016 Sukohi Kuhoh
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-26