PHP code example of ziixdk / admin-ext-media-manager

1. Go to this page and download the library: Download ziixdk/admin-ext-media-manager 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/ */

    

ziixdk / admin-ext-media-manager example snippets



    'extensions' => [

        'media-manager' => [
            // Select a local disk that you configured in `config/filesystem.php`
            'disk' => 'public'
            // Enable compression of images with intervention/image
            'compress' => [
                'enable' => true,
                'max-width' => 1920,
                'quality' => 90,
                'driver' => "imagick",
            ],
            'allowed_ext' => 'svg,jpg,jpeg,png,pdf,doc,docx,zip,xlsx,xls'    
        ],
    ],