alveby / atrium-gallery
Photo and video albums for Atrium: bulk upload, drag-and-drop order, YouTube, VK and Rutube links, a lightbox on the site and a site builder block
Requires
- php: ^8.3
- alveby/atrium: ^0.5
- illuminate/support: ^13.0
Requires (Dev)
- alveby/atrium-theme: ^0.5
- orchestra/testbench: ^11.0
- phpunit/phpunit: ^12.5
Suggests
- ext-exif: Turns the copies of phone photos the right way up
- alveby/atrium-theme: Draws the albums on the site and shows an album in the Gallery block of the page builder
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-04 03:06:38 UTC
README
Photo and video albums for Atrium: in every content language, per site, with a viewer on the site, lighter WebP copies of the pictures and structured data (schema.org JSON-LD) for search engines.
Install
composer require alveby/atrium-gallery php artisan atrium:module:install alveby/atrium-gallery
Add --demo for three albums: two of drawn landscapes and one with an open film of the Blender Foundation linked on YouTube.
atrium:module:install creates the tables and turns the module on; atrium:module:remove alveby/atrium-gallery turns it off and asks whether to keep the albums.
The module needs PHP's GD extension with WebP support; ext-exif makes the copies of phone photos stand the right way up.
In the admin
Albums has the name, description, cover, address, order, "active" and SEO of each album, and the tab Photos and videos:
- many photos are added at once, by picking or dropping them;
- a video is a link to YouTube, VK Video or Rutube, or an mp4 or webm file; no API key is needed;
- the order is changed by dragging or with the buttons;
- every item has a caption in each content language.
On the site
With the public theme (alveby/atrium-theme) installed:
| Address | Page |
|---|---|
/gallery |
the albums |
/gallery/summer-trip |
one album, with a viewer: mouse, keyboard and swipe |
/de/gallery/sommerreise |
the same in another content language |
A video service is asked nothing until the visitor opens a video. The Gallery block of the page builder can show an album on any page.
Videos and their previews, upload limits, the API, and moving galleries from 1C-Bitrix and WordPress are described in docs/gallery.md.
Change the look
php artisan vendor:publish --tag=atrium-gallery-config php artisan vendor:publish --tag=atrium-gallery-views php artisan vendor:publish --tag=atrium-gallery-lang
The views land in resources/views/vendor/atrium-gallery: index (the list of albums), album, partials/tiles (the grid and the viewer) and builder/gallery (the block). The admin labels are in 15 languages; English and Russian are written by hand, the others are machine translations.
Tests
From the repository root:
vendor/bin/phpunit packages/gallery/tests
The tests cover the admin, the videos and the picture copies, the pages in two languages and on two sites, the builder block and the demo, without reaching the network.
Contributing
This repository is a read-only copy of packages/gallery in AlveBy/atrium. Issues and pull requests go there.
License
MIT