c975l/gallery-bundle
Composer 安装命令:
composer require c975l/gallery-bundle
包简介
Symfony bundle providing a photo gallery (categories, batch upload, thumb/medium/highres derivatives) managed through EasyAdmin.
README 文档
README
Symfony bundle providing a photo gallery (galleries → categories → photos) managed through EasyAdmin, with batch upload and automatic thumb/medium/highres derivatives.
Features
Gallery→GalleryCategory→GalleryPhoto: a site can host more than one independent gallery, each with its own categories. Thedefaultgallery's public routes stay short (no{gallery}slug segment).- Batch upload: add several photos at once to a category, with credits/rights-reserved applied to the whole batch and per-photo alt text - reuses the
CollectionType+VichImageTypepattern from UiBundle's own Slider block. - Three derivatives generated automatically per photo (thumbnail square / medium / highres), via UiBundle's
VichImageResizeListenerand theVichMultiSizeImageInterfacecontract - naming and resizing stay centralized in UiBundle, this bundle only declares the target sizes. - One EasyAdmin menu entry (the photo library); category management is reachable from its toolbar so both screens read as one linked feature.
- A catch-all "Non classé" category is created lazily so every photo always has one, even without picking a real one at upload time.
Requirements
- PHP >= 8.0
c975l/ui-bundle(Vich naming/resizing, EasyAdmin form-theme conventions)c975l/config-bundle(EasyAdmin dashboard, menu provider)- Doctrine ORM
- VichUploader Bundle
Installation
composer require c975l/gallery-bundle
php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate
No extra Stimulus controller registration needed - the batch upload screen reuses EasyAdmin's own collection add/remove widget and Vich file preview (see gallery_photo_upload.html.twig).
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-13