pieceofcake2 / upload
File upload behavior with thumbnail generation for CakePHP 2
v2.0.1
2026-10-14 07:07 UTC
Requires
- php: >=8.0
- composer/installers: ^1.0 || ^2.0
- pieceofcake2/cakephp: ^2.12
Requires (Dev)
- cakephp/cakephp-codesniffer: ^5.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6
- pieceofcake2/app: ^2.2
- pieceofcake2/phpstan-cakephp2: ^0.2.3
Suggests
- ext-gd: For GD-based thumbnail creation
- ext-imagick: For Imagick-based thumbnail creation
Provides
None
Conflicts
None
Replaces
This package is auto-updated.
Last update: 2026-10-14 21:54:04 UTC
README
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.
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.
Documentation
Documentation: https://pieceofcake2.github.io/upload/
Contributing
See the contribution guidelines.
License
MIT License. See LICENSE.