2017 © Pedro Peláez
 

yii2-extension yii2-media-storage

Helpers, utilities and widgets for media data

image

devgroup/yii2-media-storage

Helpers, utilities and widgets for media data

  • Wednesday, February 15, 2017
  • by bethrezen
  • Repository
  • 6 Watchers
  • 2 Stars
  • 701 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Media Storage module for Yii2

WARNING: This extension is under active development. Don't use it in production!, (*1)

Extension to manage media data through web interface. Use MihailDev/yii2-elfinder as file manager, creocoder/yii2-flysystem as abstract file system, thephpleague/glide as image manipulator, DevGroup-ru/yii2-data-structure-tools to store relations in DB., (*2)

Installing

The preferred way to install this extension is through extension manager, (*3)

Another way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist devgroup/yii2-media-storage "*"

or add, (*6)

"devgroup/yii2-media-storage": "*"

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

Because this is yii2-extension you should run migrations manually, (*8)

Configure

If extension installed throw extension manager simple go to config page and select media storage section., (*9)

If extension installed throw composer you need to add to configuration, (*10)

[    
    'bootstrap' => ['media', 'properties'],
    'modules' => [       
        'properties' => [
            'class' => 'DevGroup\DataStructure\Properties\Module',
        ],
        'media' => [
            'class' => 'DevGroup\MediaStorage\MediaModule',
        ],
    ],
    'components' => [

        'multilingual' => [
            'class' => \DevGroup\Multilingual\Multilingual::className(),
            'default_language_id' => 1,
            'handlers' => [
                [
                    'class' => \DevGroup\Multilingual\DefaultGeoProvider::className(),
                    'default' => [
                        'country' => [
                            'name' => 'England',
                            'iso' => 'en',
                        ],
                    ],
                ],
            ],
        ],            

        'protectedFilesystem' => [
            'class' => 'creocoder\flysystem\LocalFilesystem',
            'path' => '@app/media',
        ],
    ],
];

The Versions