{"id":93042,"library":"verot-class-upload-php","title":"Class Upload","description":"This PHP class uploads files and manipulates images very easily.","status":"active","version":"2.1.6","language":"php","source_language":null,"source_url":"https://github.com/verot/class.upload.php","tags":["upload","image","manipulation","file","gd"],"install":[{"cmd":"composer require verot/class.upload.php","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Upload","correct":"use Verot\\Upload\\Upload;"}],"quickstart":{"code":"use Verot\\Upload\\Upload;\n\n$handle = new Upload($_FILES['image']);\nif ($handle->uploaded) {\n    $handle->file_new_name_body = 'new_image';\n    $handle->image_resize = true;\n    $handle->image_x = 100;\n    $handle->image_y = 100;\n    $handle->process('/path/to/uploads/');\n    if ($handle->processed) {\n        echo 'Upload successful';\n        $handle->clean();\n    } else {\n        echo 'Error: ' . $handle->error;\n    }\n}","lang":"php","description":"Upload and resize an image file."},"warnings":[{"fix":"Use version 2.x which is compatible with PHP 7+.","message":"The class uses deprecated `ereg` functions in older versions; may cause errors in PHP 7+.","severity":"breaking","affected_versions":"<2.0"}],"env_vars":null,"search_vec":"'class':1,5 'easili':12 'file':7,16 'gd':17 'imag':10,14 'manipul':9,15 'php':4 'upload':2,6,13","created_at":"2026-06-19T09:42:03.571532+00:00","updated_at":"2026-06-19T09:42:03.571532+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://www.verot.net/php_class_upload.htm","github":"https://github.com/verot/class.upload.php","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}