PHPackages                             phundament/p3media - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. phundament/p3media

ActiveYii-extension[File &amp; Storage](/categories/file-storage)

phundament/p3media
==================

Yii media file manager module with ckeditor integration

0.17.4(11y ago)136713[10 issues](https://github.com/schmunk42/p3media/issues)BSD-3-ClausePHPPHP &gt;=5.3.0

Since Sep 19Pushed 9y ago3 watchersCompare

[ Source](https://github.com/schmunk42/p3media)[ Packagist](https://packagist.org/packages/phundament/p3media)[ Docs](https://github.com/schmunk42/p3media)[ RSS](/packages/phundament-p3media/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (11)Versions (56)Used By (0)

Phundament 3 - Media
====================

[](#phundament-3---media)

\##Requirements

- Yii 1.1.8
- PHP 5.3

Download
--------

[](#download)

Via [github](https://github.com/schmunk42/p3media/downloads).

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

[](#installation)

Note: You can also place the module and extensions from the download package into your app, run the migration, create the directory and adjust the config manually.

**Note: Setup RBAC items to allow access to controller actions.**

If you prefer to test this module with a blank Yii web application skeletion follow these steps:

### Extract &amp; create webapp

[](#extract--create-webapp)

```
tar -xzf p3media-.tar.gz p3media-demo

```

For the demo, we'll setup an app skeleton

```
cd p3media-demo
/path/to/yiic webapp .

```

### Database Migration

[](#database-migration)

Run migration to setup database schema

```
protected/yiic migrate \
  --migrationPath=application.modules.p3media.migrations \
  --migrationTable=migration_module_p3media

```

### Directory permissions

[](#directory-permissions)

P3Media will store its files here:

```
mkdir protected/data/p3media
chmod 777 protected/data/p3media/

```

If you want to import local files (e.g. FTP uploads) your should also create the import directory

```
mkdir protected/data/p3media-import
chmod 777 protected/data/p3media-import/

```

### Configuration

[](#configuration)

Include the [configuration file](https://github.com/schmunk42/p3media/blob/master/config/main.php) provided along with p3media.

```
[php]
return CMap::mergeArray(
    require(dirname(__FILE__).'/../modules/p3media/config/main.php'),
    ...

```

Usage
-----

[](#usage)

Go to the index page of the module

```
http://localhost/webapp/index.php?r=p3media

```

### Upload files

[](#upload-files)

Upload your files by selecting 'Add files...' or by drag &amp; drop

```
http://localhost/webapp/index.php?r=p3media/import/upload

```

### Ckeditor Test

[](#ckeditor-test)

Open the ckeditor test page and click on the image icon and then 'Browse server'. Select an image and confirm, the image should be added in your editor.

```
http://localhost/webapp/index.php?r=p3media/default/ckeditortest

```

API
===

[](#api)

**Under construction**

You can retrieve a resized version (see presets in config) of an image by using the 'ID' and the 'PRESET' as URL params

```
/index.php?r=p3media/file/image&id={ID}&preset={PRESET}

```

Features
--------

[](#features)

- Ckfinder replacement for integration with [ckeditor](http://ckeditor.com/)
- Multi-file upload with [jquery-file-upload](https://github.com/blueimp/jQuery-File-Upload)
- Media presets for easy usage of [image](http://www.yiiframework.com/extension/image)
- CRUDs build with [gtc](http://www.yiiframework.com/extension/gii-template-collection/)
- Meta-data enabled (hierarchy, permissions)

\##Resources

- [Project page on github](https://github.com/schmunk42/p3media)
- Core module of [Phundament 3](http://www.yiiframework.com/extension/phundament)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 84.7% 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 ~13 days

Recently: every ~32 days

Total

54

Last Release

4340d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b4ab2b6685ec71887908ec8cff261a16cd5bb24c69bb8ab52840e220f175f9d?d=identicon)[schmunk](/maintainers/schmunk)

---

Top Contributors

[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (298 commits)")[![marc7000](https://avatars.githubusercontent.com/u/1118837?v=4)](https://github.com/marc7000 "marc7000 (17 commits)")[![motin](https://avatars.githubusercontent.com/u/793037?v=4)](https://github.com/motin "motin (17 commits)")[![Quexer69](https://avatars.githubusercontent.com/u/3859353?v=4)](https://github.com/Quexer69 "Quexer69 (10 commits)")[![ametad](https://avatars.githubusercontent.com/u/1582541?v=4)](https://github.com/ametad "ametad (4 commits)")[![disco-tex77](https://avatars.githubusercontent.com/u/715173?v=4)](https://github.com/disco-tex77 "disco-tex77 (3 commits)")[![handcode](https://avatars.githubusercontent.com/u/825574?v=4)](https://github.com/handcode "handcode (1 commits)")[![bozz](https://avatars.githubusercontent.com/u/45374?v=4)](https://github.com/bozz "bozz (1 commits)")[![ralfnoack](https://avatars.githubusercontent.com/u/4761316?v=4)](https://github.com/ralfnoack "ralfnoack (1 commits)")

---

Tags

filemanagerextensionmoduleyii

### Embed Badge

![Health badge](/badges/phundament-p3media/health.svg)

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

###  Alternatives

[noam148/yii2-image-manager

A Yii2 module/widget for upload and cropping images

12914.9k](/packages/noam148-yii2-image-manager)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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