phundament / p3media
Yii media file manager module with ckeditor integration
Installs: 67
Dependents: 1
Suggesters: 0
Security: 0
Stars: 13
Watchers: 4
Forks: 13
Open Issues: 10
Type:yii-extension
Requires
- php: >=5.3.0
- bwoester/yii-static-events-component: ~1.0.2
- clevertech/yiibooster: >=1.0,<3.0
- mikehaertl/translatable: 1.*
- phundament/p3extensions: >=0.17.0
- sammaye/auditrail2: 1.*
- schmunk42/access: @stable
- schmunk42/adjacency-list-behavior: @stable
- schmunk42/php-inflector: >=0.1.0
- schmunk42/relation: 1.*
- yiiext/status-behavior: 0.7.*
- yiisoft/yii: 1.1.*
- dev-master
- 0.17.4
- 0.17.3
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.2
- 0.16.1
- 0.16.0
- 0.15.5
- 0.15.4
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.0
- 0.13.9
- 0.13.8
- 0.13.7
- 0.13.6
- 0.13.5
- 0.13.4
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.0
- 0.11.x-dev
- 0.11.12
- 0.11.11
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.2
- 0.7.1
- 0.7.0
- dev-develop
This package is auto-updated.
Last update: 2024-12-13 02:11:57 UTC
README
##Requirements
- Yii 1.1.8
- PHP 5.3
Download
Via github.
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 & create webapp
tar -xzf p3media-<SHA1>.tar.gz p3media-demo
For the demo, we'll setup an app skeleton
cd p3media-demo
/path/to/yiic webapp .
Database Migration
Run migration to setup database schema
protected/yiic migrate \
--migrationPath=application.modules.p3media.migrations \
--migrationTable=migration_module_p3media
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
Include the configuration file provided along with p3media.
[php]
return CMap::mergeArray(
require(dirname(__FILE__).'/../modules/p3media/config/main.php'),
...
Usage
Go to the index page of the module
http://localhost/webapp/index.php?r=p3media
Upload files
Upload your files by selecting 'Add files...' or by drag & drop
http://localhost/webapp/index.php?r=p3media/import/upload
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
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
- Ckfinder replacement for integration with ckeditor
- Multi-file upload with jquery-file-upload
- Media presets for easy usage of image
- CRUDs build with gtc
- Meta-data enabled (hierarchy, permissions)
##Resources
- Project page on github
- Core module of Phundament 3