websafe/lib-websafe-blueimp-jquery-file-upload-handler

Repackaged PHP handler from Blueimp Jquery-File-Upload. Composer and autoloader ready. Contains only the PHP handler class. Install frontend assets with bower.

v9.18.0 2017-04-12 13:20 UTC

This package is not auto-updated.

Last update: 2024-10-26 14:58:21 UTC


README

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),
  • 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();