Registry / utility / verot-class-upload-php

verot-class-upload-php

JSON →
library2.1.6phppackagistunverified

This PHP class uploads files and manipulates images very easily.

composer require verot/class.upload.php
INSTALL
IMPORT
SIG · VEROT-CLASS-UPLOAD
V
verot-class-upload-php
utilityphpv2.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Upload
use Verot\Upload\Upload;

Upload and resize an image file.

use Verot\Upload\Upload; $handle = new Upload($_FILES['image']); if ($handle->uploaded) { $handle->file_new_name_body = 'new_image'; $handle->image_resize = true; $handle->image_x = 100; $handle->image_y = 100; $handle->process('/path/to/uploads/'); if ($handle->processed) { echo 'Upload successful'; $handle->clean(); } else { echo 'Error: ' . $handle->error; } }
Debug
Known issues
breakingThe class uses deprecated `ereg` functions in older versions; may cause errors in PHP 7+.
fix
Use version 2.x which is compatible with PHP 7+.
affects: <2.0
Upgrade
Version history
2.1.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
verot-class-upload-php — pip install verot-class-upload-php · libregistry