bazalt/thumbs

Installs: 10 517

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 4

Forks: 2

Open Issues: 0

pkg:composer/bazalt/thumbs

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

This package is not auto-updated.

Last update: 2025-09-27 20:12:58 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]