Skip to content

Integration of PHP Static Image in Greg PHP Application.

License

Notifications You must be signed in to change notification settings

greg-md/php-app-imagix

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages