bazalt/thumbs

dev-master 2015-02-04 06:53 UTC

This package is not auto-updated.

Last update: 2020-07-10 17:28:11 UTC


README

Install via composer

php composer require bazalt/thumbs

Or just add this config to your composer.json

{
    "require": {
        "bazalt/thumbs": "dev-master"
    }
}

Nginx:

location /static/ {
    root /www/public;

    try_files $uri /index.php?file=$uri;
}

Apache:

RewriteCond %{REQUEST_URI} ^(/static/)
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ thumb.php?file=$1 [L]