A simple plugin for creating/editing/using photogalleries in a Laravel project
itestense/laravel-photogallery is a Laravel package for a simple plugin for creating/editing/using photogalleries in a laravel project.
It currently has 0 GitHub stars and 30 downloads on Packagist (latest version 0.4).
Install it with composer require itestense/laravel-photogallery.
Discover more Laravel packages by itestense
or browse all Laravel packages to compare alternatives.
Last updated
Laravel Photogallery is an administrative interface for Laravel plus some useful modules that can be used in the frontend. You can upload images on the server, obtain thumbnails having different sizes and place them into galleries with a specific order.
##Warning!
This package is still in the early development stage, so please don't use it inproduction. Be patient for a while! :-) If you want to collaborate, you're welcome.
##Prerequisites
You need php-gd module.
##Dependencies
This module will also install intervention/image and illuminate/support
##Install
###Composer Simply add this line to composer.json:
"itestense/laravel-photogallery":"*"
and run composer update. Then you need to register the service provider in config/app.php in the providers array.
'providers' => [
...
'Itestense\LaravelPhotogallery\LaravelPhotogalleryServiceProvider',
...
]
##Assets Publish the assets with:
php artisan asset:publish itestense/laravel-photogallery
##Configuration Once the package is installed, publish the config file with:
php artisan config:publish itestense/laravel-photogallery
###Options
Below is a list of all the available options:
####Upload directory The directory must exist
...
'upload_dir'=>'/public/uploads/photos',
...
####Route prefix All plugins routes will prefixed with this string
...
'route_prefix'=>'/admin/gallery',
...
####Thumbnails
You can specify an arbitrary number of thumbnail formats, choosing maximum width (w), height (h) and compression quality (q)
...
'formats'=>[
's1'=>['w'=>100,'h'=>null,'q'=>96],
'big'=>['w'=>1024,'h'=>768,'q'=>100],
...
],
...
Last edit: Saturday, 02. May 2015 07:02PM