GithubHelp home page GithubHelp logo

apnikhil / plupload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fojuth/plupload

0.0 1.0 0.0 565 KB

A Laravel 4 implementation of Plupload (http://www.plupload.com/).

License: GNU General Public License v3.0

CSS 1.11% JavaScript 95.68% PHP 2.67% HTML 0.55%

plupload's Introduction

Plupload for Laravel 5

A simple Laravel 5 implementation of Plupload. Makes uploading multiple files easy.

Template engine support

The package supports Twig and Blade templating engines.

Installation

  1. Install the package using Composer.
  2. Add 'Fojuth\Plupload\PluploadServiceProvider' to the provider section in app/config/app.php.
  3. (Twig only) Add 'Fojuth\Plupload\TwigExtension' to Twig extensions in app/config/packages/rcrowe/twigbridge/extensions.php.
  4. Publish the package's assets using this command: php artisan publish:asset fojuth/plupload.
  5. 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.

plupload's People

Contributors

fojuth avatar svpernova09 avatar jildertmiedema avatar radmen avatar

Watchers

Nikhil  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.