dilab / dropzone.php
PHP package for Dropzone.js
Installs: 1 080
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: >=5.5.0
- league/flysystem: ^1.0
Requires (Dev)
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2025-01-14 19:43:50 UTC
README
Installation
To install, use composer:
composer require dilab/dropzone.php
API
- Dropzone::build()->name('test.jpg'')->upload($stream,$meta);
Make sure you call
name
beforeupload
for it to work correctly.
Testing
$ ./vendor/bin/phpunit
Features
- Support chunked upload
Sample
include "vendor/autoload.php"; use Dilab\Dropzone; $stream = fopen($_FILES['file']['tmp_name'], 'r+'); $dropzone = new Dropzone(__DIR__); $dropzone->name($_FILES['file']['name'])->upload($stream, $_POST);