1. Go to this page and download the library: Download skylineos/yii-mediamanager library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
skylineos / yii-mediamanager example snippets
'modules' => [
...
'mediamanager' => [
'class' => 'skylineos\yii\mediamanager\Module',
// To control authorization
'accessRoles' => ['@'],
// Layout if you wish to specify
'layout' => '@vendor/skylineos/yii/mediamanager/views/layouts/main.php',
// Adapter definitions below - only pick one at a time.
// For AWS S3
'adapter' => 's3',
'configuration' => [
'bucket' => 'my-bucket',
'region' => 'my-region',
'prefix' => 'my-prefix',
],
// For local filesystem
'adapter' => 'local',
'configuration' => [
'directory' => 'path/to/your/files',
],
],
]
use skylineos\yii\mediamanager\widgets\FileInput;
use skylineos\yii\mediamanager\widgets\MediaManagerModal;
use skylineos\yii\mediamanager\widgets\TinyMce;
use skylineos\yii\mediamanager\widgets\MediaManagerModal;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.