1. Go to this page and download the library: Download buse974/dms 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/ */
'dms-conf' => array(
/*
* Allowed sizes - You can add as many as you need
*/
'size_allowed' => array(
array('width' => 300, 'height' => 200),
array('width' => 300, 'height' => 300),
array('width' => 150, 'height' => 100),
array('width' => 80, 'height' => 80),
array('width' => 300),
),
/*
* path where all the documents will be uploaded
*/
'default_path' => 'upload/',
/*
* http adapter - You have to add your [http adapter](#HTTP-adapter)
* in your config/autoloader/local.php or config/autoloader/global.php
* If you already have a http adapter, please just specify its name
*/
'adapter' => 'http-adapter',
'convert' => array(
/*
* path where you want to convert and stock the temporaries files
* !! apache need all rights for writing and reading on this directory !!
*/
'tmp' => '/tmp/',
),
/*
* the headers to add to your files - especially for cross-domain
*/
'headers'=> array(
'Access-Control-Allow-Origin'=>'http://local.wow.in',
'Access-Control-Allow-Credentials'=>'true'
),
),