PHP code example of ctrbts / secure-timthumb
1. Go to this page and download the library: Download ctrbts/secure-timthumb 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/ */
ctrbts / secure-timthumb example snippets
// Example Configuration
$config = [
'allow_external' => true,
'allowed_sites' => ['flickr.com', 'staticflickr.com'],
'max_file_size' => 5242880, // 5MB
];