greg-md/php-app-imagix

Integration of PHP Imagix in Greg PHP Application.

dev-master 2019-07-24 08:35 UTC

This package is auto-updated.

Last update: 2024-04-19 21:55:56 UTC


README

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