PHPackages                             slicesofcake/file - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. slicesofcake/file

AbandonedArchivedCakephp-plugin[Image &amp; Media](/categories/media)

slicesofcake/file
=================

CakePHP plugin for upload files with processing images using GD or ImageMagick library

1.2.1(5y ago)0167[1 issues](https://github.com/slicesofcake/file/issues)MITPHPPHP &gt;=5.6

Since Nov 8Pushed 5y agoCompare

[ Source](https://github.com/slicesofcake/file)[ Packagist](https://packagist.org/packages/slicesofcake/file)[ RSS](/packages/slicesofcake-file/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

CakePHP plugin for upload files
===============================

[](#cakephp-plugin-for-upload-files)

[![Build Status](https://camo.githubusercontent.com/c03fd05530d4c351328bc8e4b1b271db2752056bec51b31d2f19260bd8666283/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736c696365736f6663616b652f66696c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/slicesofcake/file/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f3e23f16d27624a90663b74a868700e69d5bfad126eba0460a0afb198ae9de48/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736c696365736f6663616b652f66696c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/slicesofcake/file/?branch=master)[![LICENSE](https://camo.githubusercontent.com/4209b0f991f846ee5b364ee1781b647b36cbaf476fb40a4abb42447e328f00e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736c696365736f6663616b652f66696c652e737667)](https://github.com/slicesofcake/file/blob/master/LICENSE)[![Releases](https://camo.githubusercontent.com/6ec57b5dd3f96598e41275ec79039a33cbba2a3262c797bf61e485065c5360ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736c696365736f6663616b652f66696c652e737667)](https://github.com/slicesofcake/file/releases)

Upload files with processing images using GD or ImageMagick library.

Requirements
------------

[](#requirements)

It is developed for CakePHP 4.x.

Installation
------------

[](#installation)

You can install plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require slicesofcake/file

```

Setup
-----

[](#setup)

Add file type input in your view:

```
echo $this->Form->control('logo', [
    'type' => 'file',
]);

```

You should also add `'type' => 'file'` in your creating form method.

Note: If you want use multiple file input (from HTML5), just replace name of input field from `logo` to `logo[]` and add to options attribute `multiple`.

Next, load behavior in your table on `initialize` method, like below:

```
$this->addBehavior('SlicesCake/File.File', [
    'logo',
]);

```

Note: Field should be accessible in Entity class.

TODOs
-----

[](#todos)

- Add light Exceptions
- Work with ImageMagick
- Work with Gmagick
- Add support to WEBP image type
- Add support to own method to generate names
- Add support to work with many files
- Add command to work with files
- Add support to EXIF
- Add support to correct orientation by EXIF ()

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~187 days

Total

4

Last Release

2176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c20760f298eae29425dd1c6180f208aedd70750a1bf2ecc350956a1587d6b4c?d=identicon)[kicaj](/maintainers/kicaj)

---

Top Contributors

[![kicaj](https://avatars.githubusercontent.com/u/3750725?v=4)](https://github.com/kicaj "kicaj (86 commits)")[![stickler-ci](https://avatars.githubusercontent.com/u/16011037?v=4)](https://github.com/stickler-ci "stickler-ci (1 commits)")

---

Tags

cakephpcakephp-pluginfile-processingfile-uploadgdimage-processingimagemagick

### Embed Badge

![Health badge](/badges/slicesofcake-file/health.svg)

```
[![Health](https://phpackages.com/badges/slicesofcake-file/health.svg)](https://phpackages.com/packages/slicesofcake-file)
```

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)[admad/cakephp-glide

CakePHP plugin for using Glide image manipulation library.

34160.7k1](/packages/admad-cakephp-glide)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
