GithubHelp home page GithubHelp logo

binhqx / lib-websafe-blueimp-jquery-file-upload-handler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from websafe/lib-websafe-blueimp-jquery-file-upload-handler

0.0 1.0 1.0 472 KB

The PHP backend from the jQuery File Upload Plugin repackaged as an PSR-0/1/2 compatible library for easier automated installation using Composer.

License: MIT License

lib-websafe-blueimp-jquery-file-upload-handler's Introduction

jQuery File Upload PHP backend / upload handler

This project contains the PHP backend from the jQuery File Upload Plugin repackaged as an PSR-0/PSR-1/PSR-2 compatible library for easier automated installation using Composer. This package does not contain any of the frontend assets (js/css/img) - You should install them separately, using bower or other tools.

What happens during the build process?

The buildprocess makes a few small changes to the original server/php/UploadHandler.php and publishes back to GitHub:

  • a namespace is being added (Websafe\Blueimp),
  • The class is being renamed (UploadHandler => JqueryFileUploadHandler),
  • stdClass is being prefixed with \,
  • the code is being formatted using php-cs-fixer,
  • an autoload classmap is generated (autoload_classmap.php).

TODO

  • Update version in composer.json after build
  • Check if newer jQuery File Upload Plugin really affects the lib.
  • Travis
  • CodeSniffer
  • PSR-2 - camel case methods!
  • Unit Testing
  • Count builds?

Usage

<?php
//
require 'vendor/autoload.php';
//
use Websafe\Blueimp\JqueryFileUploadHandler;
//
$uh = new JqueryFileUploadHandler();

lib-websafe-blueimp-jquery-file-upload-handler's People

Contributors

websafe avatar

Watchers

 avatar

Forkers

brave-liu

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.