Search by

File upload behavior with thumbnail generation for CakePHP 2

Package info

github.com/pieceofcake2/upload

Type:cakephp-plugin

pkg:composer/pieceofcake2/upload

Statistics

Installs: 13

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.3 2026-10-16 08:18 UTC

README

GitHub License Packagist Version PHP CakePHP PHPStan CI Codecov

pieceofcake2/upload is a model behavior that uploads files and generates thumbnails for CakePHP 2 applications. It is a fork of josegonzalez/cakephp-upload (2.x branch) for pieceofcake2/cakephp, and replaces the josegonzalez/cakephp-upload package.

Documentation

The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/Upload/docs/README.md (the location depends on your installer-paths). Install the package with --dev if you only need it for development.

Requirements

  • PHP 8.0+
  • pieceofcake2/cakephp 2.12+
  • GD or Imagick PHP extension (for thumbnail creation)

Installation

composer require pieceofcake2/upload

Your application's composer.json must allow the composer/installers plugin and set installer-paths; then load the plugin and add the Upload.Upload behavior to your models. See Installation and Usage.

Contributing

See the contribution guidelines.

Origin

This package is a maintained fork of FriendsOfCake/cakephp-upload (josegonzalez/cakephp-upload on Packagist, last upstream version 1.3.1), originally by Jose Diaz-Gonzalez. It is maintained for CakePHP 2 on modern PHP by pieceofcake2. Changes from the original are listed in the commit history since the fork.

License

MIT License. See LICENSE.