- ### Requires:

  Requires PHP5, GD library, mbstring library, exif library.

- ### Note:

  Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini. The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly.

1. Upload source file to your server
2. Create your gallery folder and make it writable (CHMOD 0777)
3. Create detail data for each image (See image below) - *Note: For Linux and Mac OS: Please install Exif tool to read & write EXIF tags to your photo
4. Upload your image to gallery folder
5. Open browser, then go to your app path http://your_app_path
6. Enjoy!

- ### Purpose:

  Generate thumbnail gallery from specific folders

### Usage Example:

    				/*import library*/
    				require_once('libs/php_gallery.php');

    				/*initial object - with path to your folder*/
    				$php_gallery = new PHP_Gallery('./gallery/');

    				/*
    				* If set cache = true. After scan folder, this script will generate a file(default name: gallery.json) with all images data.
    				* This file (gallery.json) need remove when new image uploaded
    				*/
    				$php_gallery->setCache(true);

    				/*Set of images in your folder*/
    				$images = $php_gallery->getImages();

    				/*Print out the $images variable*/
    				print_r($images);

### Output:

    				Array
    				(
    				    [1] => Array
    				        (
    							[src]         => path/to/image
    							[thumbnail]   => path/to/thumbnail
    							[title]       => Your Title
    							[description] => Your Description
    							[url]         => http://example.com
    				        )

    				    [2] => Array
    				        (
    							[src]         => path/to/image
    							[thumbnail]   => path/to/thumbnail
    							[title]       => Your Title
    							[description] => Your Description
    							[url]         => http://example.com
    				        )
    					...
    				)

1. Resize Class (Author: Jarrod Oberto)
2. Thumbnail Grid With Expand Preview (Author: Codrops)