masterflash-ru / gallery-simple
Простейшая фотогалерея
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:service
Requires
- php: ^7.1
- masterflash-ru/ado: ^2.0
- zendframework/zend-cache: ^2.7
This package is auto-updated.
Last update: 2025-03-07 02:41:57 UTC
README
старт работ
В конфиге вашего приложения должны быть указаны правила обработки и записи в хранилище файлов, например:
"storage"=>[ 'data_folder'=>"data/datastorage", 'file_storage'=>[ 'default'=>[ 'base_url'=>"media/pics/", ], ], 'items'=>[ "gallerys"=>[ "description"=>"Анонсы фотогалерей", 'file_storage'=>'default', 'file_rules'=>[ 'admin_img'=>[ 'filters'=>[ CopyToStorage::class => [ 'folder_level'=>0, 'folder_name_size'=>3, 'strategy_new_name'=>'md5' ], ImgResize::class=>[ "method"=>2, "width"=>250, "height"=>150, 'adapter'=>ImgAdapter::class, ], ], ], 'img'=>[ 'filters'=>[ CopyToStorage::class => [ 'folder_level'=>0, 'folder_name_size'=>3, 'strategy_new_name'=>'md5' ], ImgResize::class=>[ "method"=>1, "width"=>222, "height"=>166, 'adapter'=>ImgAdapter::class, ], ], ], ], ],//gallerys ], ],