PHPackages                             bmcclure/cakephp-media-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bmcclure/cakephp-media-plugin

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

bmcclure/cakephp-media-plugin
=============================

CakePHP Media Plugin

591.4k↓100%22[1 issues](https://github.com/bmcclure/CakePHP-Media-Plugin/issues)[1 PRs](https://github.com/bmcclure/CakePHP-Media-Plugin/pulls)PHP

Since Apr 18Pushed 12y ago11 watchersCompare

[ Source](https://github.com/bmcclure/CakePHP-Media-Plugin)[ Packagist](https://packagist.org/packages/bmcclure/cakephp-media-plugin)[ RSS](/packages/bmcclure-cakephp-media-plugin/feed)WikiDiscussions cake-2.0 Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\##Database Fields

```
    create table users (
    id char(36) not null,
    file varchar(255) default null,
    dirname varchar(255) default null,
    basename varchar(255) default null,
    checksum varchar(255) default null,
    created datetime default null,
    modified datetime default null,
    primary key(id)
    );
```

\##Installation

1. Clone into /path/to/app/Plugin `git clone https://bmcclure@github.com/bmcclure/CakePHP-Media-Plugin.git Media`
2. Add as a submodule `git submodule add https://bmcclure@github.com/bmcclure/CakePHP-Media-Plugin.git Plugin/Media`
3. Load the plugin.

    ``//Within your bootstrap.php``
    ``CakePlugin::load('Media', array('bootstrap'=>true));`

4. Initialize Media files. `cake Media.Media init`

```
---------------------------------------------------------------
Media Shell
---------------------------------------------------------------
Do you want to create missing media directories now?
[n] > y``
/app/webroot/media/                               [OK  ]
/app/webroot/media/static/                        [OK  ]
/app/webroot/media/static/aud                     [OK  ]
/app/webroot/media/static/doc                     [OK  ]
/app/webroot/media/static/gen                     [OK  ]
/app/webroot/media/static/img                     [OK  ]
/app/webroot/media/static/vid                     [OK  ]
/app/webroot/media/transfer/                      [OK  ]
/app/webroot/media/transfer/aud                   [OK  ]
/app/webroot/media/transfer/doc                   [OK  ]
/app/webroot/media/transfer/gen                   [OK  ]
/app/webroot/media/transfer/img                   [OK  ]
/app/webroot/media/transfer/vid                   [OK  ]
/app/webroot/media/filter/                        [OK  ]

Your transfer directory is missing a htaccess file to block requests.
Do you want to create it now?
[n] > n
```

5. Set the permissions for the Media folder:

```
chmod -R 777 webroot/media/{transfer,filter}
```

\##Upload and View Image

1. Set the model as media transfer user

````

2. Set the form:

``echo $this->Form->create('User', array('type'=>'file'));``
``echo $this->Form->input('file', array('type'=>'file'));``
``echo $this->Form->input('dirname', array('type'=>'hidden'));``
``echo $this->Form->input('basename', array('type'=>'hidden'));``
``echo $this->Form->input('checksum', array('type'=>'hidden'));``
``echo $this->Form->end(__('Submit'));``

3. To view image, add the Media helper to your controller and use:

``Media->embed(h($employee['User']['basename'])); ?>``

4. ENJOY!

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.2% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa528157218959b2eda7d49d4ca73d114bd8e75af56ff6658c3c12b586a38533?d=identicon)[bmcclure](/maintainers/bmcclure)

---

Top Contributors

[![mariuswilms](https://avatars.githubusercontent.com/u/29702?v=4)](https://github.com/mariuswilms "mariuswilms (325 commits)")[![ReplicaObscura](https://avatars.githubusercontent.com/u/277977?v=4)](https://github.com/ReplicaObscura "ReplicaObscura (44 commits)")[![adriengibrat](https://avatars.githubusercontent.com/u/62407?v=4)](https://github.com/adriengibrat "adriengibrat (25 commits)")[![iamduncan](https://avatars.githubusercontent.com/u/21673?v=4)](https://github.com/iamduncan "iamduncan (10 commits)")[![drewisme](https://avatars.githubusercontent.com/u/2136643?v=4)](https://github.com/drewisme "drewisme (7 commits)")[![slywalker](https://avatars.githubusercontent.com/u/54266?v=4)](https://github.com/slywalker "slywalker (5 commits)")[![rchavik](https://avatars.githubusercontent.com/u/39490?v=4)](https://github.com/rchavik "rchavik (3 commits)")[![thomheymann](https://avatars.githubusercontent.com/u/190132?v=4)](https://github.com/thomheymann "thomheymann (3 commits)")[![olistockman](https://avatars.githubusercontent.com/u/279255?v=4)](https://github.com/olistockman "olistockman (2 commits)")[![gBokiau](https://avatars.githubusercontent.com/u/108301?v=4)](https://github.com/gBokiau "gBokiau (2 commits)")[![jmillerdesign](https://avatars.githubusercontent.com/u/848523?v=4)](https://github.com/jmillerdesign "jmillerdesign (2 commits)")[![sitedyno](https://avatars.githubusercontent.com/u/216721?v=4)](https://github.com/sitedyno "sitedyno (1 commits)")[![ricog](https://avatars.githubusercontent.com/u/66134?v=4)](https://github.com/ricog "ricog (1 commits)")[![gmomchilov](https://avatars.githubusercontent.com/u/9258?v=4)](https://github.com/gmomchilov "gmomchilov (1 commits)")[![vstabile](https://avatars.githubusercontent.com/u/604027?v=4)](https://github.com/vstabile "vstabile (1 commits)")

### Embed Badge

![Health badge](/badges/bmcclure-cakephp-media-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/bmcclure-cakephp-media-plugin/health.svg)](https://phpackages.com/packages/bmcclure-cakephp-media-plugin)
```

###  Alternatives

[ozdemir/datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.

273158.4k](/packages/ozdemir-datatables)[that0n3guy/transliteration

Transliteration provides one-way string transliteration (romanization) and cleans text by replacing unwanted characters.

1296.5k4](/packages/that0n3guy-transliteration)

PHPackages © 2026

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