PHP code example of fastd / viewer

1. Go to this page and download the library: Download fastd/viewer 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/ */

    

fastd / viewer example snippets


#file: config/app.php


return [
    // code...
    'services' => [
        \FastD\Viewer\Viewer::class,
    ],
    // code...    
];

#file: config/config.php



return [
    // code...
    'viewer' => [
        'path' => [],
        'options' => [],
    ],
    // code...    
];