2017 © Pedro Peláez
 

yii2-extension yii2-media

A Yii2 Media management extension

image

kmergen/yii2-media

A Yii2 Media management extension

  • Friday, May 25, 2018
  • by kmergen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 150 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Yii 2 Media

Yii2 extension to provide media file management with model fileupload Uploaded files managed all in a database table., (*1)

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require "kmergen/yii2-media: "*"

or add, (*4)

"kmergen/yii2-media": "*",

to the require section of your composer.json file., (*5)

Installation

1. Run Migrations

Run $ yii migrate --migrationPath=@vendor/kmergen/yii2-media/migrations, (*6)

2. Configuration

In your configuration file set the following:, (*7)

'bootstrap' => [
    'kmergen\media\Bootstrap',
    ...
],
'modules' => [
    'media' => [
        'class' => 'kmergen\media\Module'
    ],
    ...
]

3. Image component

'components' => [
    'image' => [
        'class' => 'kmergen\media\components\Image'
    ],
    ...
]

Now you can everywhere in your application e.g. get a thumb with "Yii::$app->image->thumb('path/to/original/image', '$thumbStyle')"., (*8)

4. Upload files with integrated dropzone widget

Note: This extension is under development. Use it not in production., (*9)

The Versions

25/05 2018

dev-master

9999999-dev

A Yii2 Media management extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Klaus Megen

extension yii2 yii media fileupload

07/02 2018

2.0.x-dev

2.0.9999999.9999999-dev

A Yii2 Media management extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Klaus Megen

extension yii2 yii media fileupload