fojuth / plupload
A Laravel 4 implementation of Plupload (http://www.plupload.com/).
Installs: 2 468
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 2
Forks: 9
Open Issues: 1
Language:JavaScript
Requires
- php: >=5.4.0
- illuminate/support: ~5.0
Suggests
- rcrowe/twigbridge: Required for Twig support.
This package is not auto-updated.
Last update: 2024-12-16 16:07:22 UTC
README
A simple Laravel 5 implementation of Plupload. Makes uploading multiple files easy.
Template engine support
The package supports Twig and Blade templating engines.
Installation
- Install the package using Composer.
- Add
'Fojuth\Plupload\PluploadServiceProvider'
to the provider section inapp/config/app.php
. - (Twig only) Add
'Fojuth\Plupload\TwigExtension'
to Twig extensions inapp/config/packages/rcrowe/twigbridge/extensions.php
. - Publish the package's assets using this command:
php artisan publish:asset fojuth/plupload
. - You may wish to publish the config files, to override them:
php artisan publish:config fojuth/plupload
.
Usage
Twig
- Basic upload interface:
{{ plupload() }}
You can set multiple uploaders, if needed.
- Use a custom view, name the "browse" button (e.g. for JS) and specify the prefix for all the uploader's DOM elements:
{{ plupload($view_path, 'mah-button', 'uploader-1') }}
Blade
- Basic upload interface:
@plupload()
You can set multiple uploaders, if needed.
- Use a custom view, name the "browse" button (e.g. for JS) and specify the prefix for all the uploader's DOM elements:
@plupload($view_path, 'mah-button', 'uploader-1')
Support
The package is provided as is. If it breaks after some update - it breaks :)
Feedback
If you have any suggestions, questions feel free to contact me.