sukohi / plasticity
Your package description here.
2.0.1
2017-10-12 09:00 UTC
Requires
- laravel/framework: ~5.0
This package is not auto-updated.
Last update: 2024-11-09 19:36:12 UTC
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