sukohi / plasticity
Your package description here.
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sukohi/plasticity
Requires
- laravel/framework: ~5.0
This package is not auto-updated.
Last update: 2025-09-28 00:29:28 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