PHPackages                             sy/photoswipe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. sy/photoswipe

ActiveLibrary[Image &amp; Media](/categories/media)

sy/photoswipe
=============

Photoswipe web component

1.1.2(1y ago)0100MITJavaScriptPHP &gt;=5.6.0

Since Mar 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/syframework/photoswipe)[ Packagist](https://packagist.org/packages/sy/photoswipe)[ RSS](/packages/sy-photoswipe/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

sy/photoswipe
=============

[](#syphotoswipe)

Photoswipe gallery web component using [PhotoSwipe v4](https://github.com/dimsemenov/photoswipe)

Installation
------------

[](#installation)

```
$ composer require sy/photoswipe
```

Basic Usage
-----------

[](#basic-usage)

On the php side, add the component:

```
$this->setComponent('PHOTOSWIPE', new \Sy\Component\Web\PhotoSwipe());
```

On the template file, don't forget to add a slot {PHOTOSWIPE}

On the html side, put images on a container with the class "photoswipe-gallery":

```

```

You can try to [run an example](https://syframework.alwaysdata.net/photoswipe) of how to use this component.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~485 days

Total

4

Last Release

464d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff93d77e63b9f2c5e160c57cef107742e5532dc90bae48d48190f570662fafc1?d=identicon)[syone](/maintainers/syone)

---

Top Contributors

[![Syone](https://avatars.githubusercontent.com/u/1608813?v=4)](https://github.com/Syone "Syone (12 commits)")

### Embed Badge

![Health badge](/badges/sy-photoswipe/health.svg)

```
[![Health](https://phpackages.com/badges/sy-photoswipe/health.svg)](https://phpackages.com/packages/sy-photoswipe)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
