Download the PHP package phundament/p3media without Composer

On this page you can find all versions of the php package phundament/p3media. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package p3media

Phundament 3 - Media

Requirements

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

Resources


All versions of p3media with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
yiisoft/yii Version 1.1.*
clevertech/yiibooster Version >=1.0,<3.0
mikehaertl/translatable Version 1.*
phundament/p3extensions Version >=0.17.0
schmunk42/access Version @stable
schmunk42/adjacency-list-behavior Version @stable
schmunk42/relation Version 1.*
schmunk42/php-inflector Version >=0.1.0
sammaye/auditrail2 Version 1.*
yiiext/status-behavior Version 0.7.*
bwoester/yii-static-events-component Version ~1.0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phundament/p3media contains the following files

Loading the files please wait ....