Skip to content

Latest commit

 

History

History
executable file
·
59 lines (40 loc) · 1.87 KB

README.md

File metadata and controls

executable file
·
59 lines (40 loc) · 1.87 KB

PHP App Imagix

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Integration of PHP Imagix in Greg PHP Application.

Table of Contents

Requirements

Installation

Download package:

composer require greg-md/php-app-imagix

Install package:

./greg install greg-imagix

Configuration

Nginx

# Imagix
location ~* ^/imagix/.+ {
    # If images doesn't exists, send to PHP to create it.
    if (!-f $document_root$uri) {
        rewrite .+ /imagix.php last;
    }

    expires max;
    add_header Pragma public;
    add_header Cache-Control "public";
    add_header Vary "Accept-Encoding";
}

License

MIT © Grigorii Duca

Huuuge Quote

I fear not the man who has practiced 10,000 programming languages once, but I fear the man who has practiced one programming language 10,000 times. © #horrorsquad