Install with composer:
composer require sycho/flarum-photoswipe:"*"
composer update sycho/flarum-photoswipe:"*" php flarum migrate php flarum cache:clear
This extension is under minimal maintenance.
It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.