Giter Club home page Giter Club logo

p3media's Introduction

Phundament 3 - Media

p3media 0.1.0

##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)

Developer Checkout

git clone --recursive git://github.com/schmunk42/p3media.git \
  protected/modules/p3media
git clone --recursive git://github.com/schmunk42/p3extensions.git \
  protected/extensions/p3extensions
git clone --recursive https://github.com/schmunk42/gii-template-collection \
  protected/extensions/gtc

##Resources

p3media's People

Contributors

schmunk42 avatar quexer69 avatar motin avatar marc7000 avatar ametad avatar bozz avatar disco-tex77 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.