WARNING: This is very much in the early stages of development. Things may change radically, or break compatibility, or just never finish.
This is intended to be a fairly straightforward replacement for packages like Single-File PHP Gallery. There are pros and cons to my approach.
- (At least for now) nowhere near single-file. Hopefully to be packaged into a phar sometime soon, though.
- Totally not finished yet.
- Not all cons listed in the cons list
- Because output is rendered with Twig, you have a huge amount of control over how the gallery looks
- Super-easy configuration with an (optional) ini file
- One installation should work for multiple folders
- Uses Silex and Symfony's HttpCache to limit resource use.
- Download gallery.phar
- Write your own
gallery.ini
(something like this) - Add or modify your image folder's
.htaccess
file to redirect URLs to the phar file (like this) - Look at https://raw.github.com/inanimatt/gallery/master/build/basic.html.twig for an example template
- If you specify a cache folder in your
gallery.ini
, make sure the folder exists and is writeable by the web server. Otherwise Gallery will use the system temp folder. - If you don't specify (or comment out) the template name in
gallery.ini
, a very basic default will be used instead.