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.
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
), - the code is being formatted using php-cs-fixer,
- an autoload classmap is generated (autoload_classmap.php).
- 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?
<?php
//
require 'vendor/autoload.php';
//
use Websafe\Blueimp\JqueryFileUploadHandler;
//
$uh = new JqueryFileUploadHandler();