PHPackages                             timdiels1/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. timdiels1/photoswipe

ActiveDrupal-library[Image &amp; Media](/categories/media)

timdiels1/photoswipe
====================

Fork for Drupal of the PhotoSwipe repository: JavaScript image gallery for mobile and desktop, modular, framework independent

v4.1.2(8y ago)03.6k1MITJavaScript

Since Apr 11Pushed 8y agoCompare

[ Source](https://github.com/timdiels1/PhotoSwipe)[ Packagist](https://packagist.org/packages/timdiels1/photoswipe)[ Docs](http://photoswipe.com)[ RSS](/packages/timdiels1-photoswipe/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

PhotoSwipe Repository
=====================

[](#photoswipe-repository)

[![Build Status](https://camo.githubusercontent.com/27001f214cfe413cbf183962af143d993a36affae0717fa1b87166e0bae4ddfa/68747470733a2f2f7472617669732d63692e6f72672f64696d73656d656e6f762f50686f746f53776970652e737667)](https://travis-ci.org/dimsemenov/PhotoSwipe)[![devDependency Status](https://camo.githubusercontent.com/09197198a3938b857a61d86707099056a27d649e81870f93b2b0284b1747adbc/68747470733a2f2f64617669642d646d2e6f72672f64696d73656d656e6f762f50686f746f53776970652f6465762d7374617475732e737667)](https://david-dm.org/dimsemenov/PhotoSwipe#info=devDependencies)[![Flattr](https://camo.githubusercontent.com/7e3f46a36526479d701ef7f90a0f8c3ac2fbab3087446e2a9fceed75cd1ab802/687474703a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)](http://flattr.com/thing/3698358/dimsemenovPhotoSwipe-on-GitHub)

JavaScript image gallery for mobile and desktop.

- [Documentation and getting started guide](http://photoswipe.com/documentation/getting-started.html).
- [Demo and script home page](http://photoswipe.com).
- [NPM](https://www.npmjs.com/package/photoswipe) `npm install photoswipe`.
- Bower `bower install photoswipe`.

Location of files
-----------------

[](#location-of-files)

- Compiled PhotoSwipe JS and CSS files, SVG and PNG sprites are in the [dist/](https://github.com/dimsemenov/PhotoSwipe/tree/master/dist) folder.
- Source files (.JS and .SCSS) are in the [src/](https://github.com/dimsemenov/PhotoSwipe/tree/master/src) folder. Note that PhotoSwipe uses Autoprefixer when compiling SASS files.
- Demo website is in the [website/](https://github.com/dimsemenov/PhotoSwipe/tree/master/website) folder.
- Documentation markdown files are in [website/documentation/](https://github.com/dimsemenov/PhotoSwipe/tree/master/website/documentation).

Plugins / extensions / addons
-----------------------------

[](#plugins--extensions--addons)

- [Ruby gem](https://rubygems.org/gems/photoswipe-rails).
- Ember.js addons: [ember-photoswipe](https://github.com/kaermorchen/ember-photoswipe), [ember-cli-photoswipe](https://github.com/poetic/ember-cli-photoswipe).
- [Eager app](https://eager.io/app/DvuKIoU8iTOt).
- [Koken CMS plugin](https://github.com/DanielMuller/koken-plugin-photoswipe).
- [Orchard CMS module](https://gallery.orchardproject.net/List/Modules/Orchard.Module.Cascade.PhotoSwipe).
- [Yellow CMS plugin](https://github.com/datenstrom/yellow-plugins/tree/master/gallery).
- [Kirby CMS plugin](https://github.com/SiteMarina/guggenheim).
- [Drupal CMF module](https://www.drupal.org/project/photoswipe).
- [ProcessWire CMS module](https://github.com/blynx/MarkupProcesswirePhotoswipe).
- [SPIP CMS module](https://plugins.spip.net/photoswipe.html).
- [Fork CMS MediaLibrary widget](https://github.com/forkcms/forkcms).

Coded something useful? [Email me]() and I’ll post a link to it here.

Build
-----

[](#build)

To compile PhotoSwipe by yourself, make sure that you have [Node.js](http://nodejs.org/), [Grunt.js](https://github.com/cowboy/grunt), [Ruby](http://www.ruby-lang.org/) and [Jekyll](https://github.com/mojombo/jekyll/) installed, then:

1. Clone the repository

    git clone
2. Go inside the PhotoSwipe folder that you fetched and install Node dependencies

    cd PhotoSwipe &amp;&amp; npm install
3. Run `grunt` to generate the JS and CSS files in the `dist` folder and the site in the `_site/` folder

    grunt

Optionally:

- Run `grunt watch` to automatically rebuild files (JS, CSS, demo website and documentation) when you change files in `src/` or in `website/`.
- Run `grunt nosite` to build just JS and CSS files (output is folder `dist/`).
- Run `grunt pswpbuild` to build just JS files. Param `--pswp-exclude` allows to exclude modules, for example `grunt pswpbuild --pswp-exclude=history` will exclude history module.

Using PhotoSwipe?
-----------------

[](#using-photoswipe)

If you’ve used PhotoSwipe in some interesting way, or on the site of a popular brand, I’d be very grateful if you [shoot me]() a link to it.

License
-------

[](#license)

Script is licensed under MIT license with one exception: Do not create a public WordPress plugin based on it, as I will develop it. If you need to use it for a public WordPress plugin right now, please ask me by email first. Thanks!

Attribution is not required, but much appreciated, especially if you’re making a product for developers.

About
-----

[](#about)

PhotoSwipe 4.0+ is developed by [Dmitry Semenov](http://twitter.com/dimsemenov). But initially script was created in 2011 by [Code Computerlove](http://www.codecomputerlove.com/), a digital agency in Manchester, they [passed](https://twitter.com/PhotoSwipe/status/444134042787930113) on development in March 2014. You can view [source and documentation](https://github.com/dimsemenov/PhotoSwipe/tree/v3.0.3) of old PhotoSwipe (&lt;4.0) in history of this repo.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 79.3% 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

Unknown

Total

1

Last Release

2952d ago

### Community

Maintainers

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

---

Top Contributors

[![dimsemenov](https://avatars.githubusercontent.com/u/1061115?v=4)](https://github.com/dimsemenov "dimsemenov (219 commits)")[![billinghamj](https://avatars.githubusercontent.com/u/905772?v=4)](https://github.com/billinghamj "billinghamj (7 commits)")[![timdiels1](https://avatars.githubusercontent.com/u/7079398?v=4)](https://github.com/timdiels1 "timdiels1 (6 commits)")[![subzey](https://avatars.githubusercontent.com/u/810582?v=4)](https://github.com/subzey "subzey (4 commits)")[![jasonlcrane](https://avatars.githubusercontent.com/u/297528?v=4)](https://github.com/jasonlcrane "jasonlcrane (4 commits)")[![ChrisMcKee](https://avatars.githubusercontent.com/u/83597?v=4)](https://github.com/ChrisMcKee "ChrisMcKee (4 commits)")[![thorstein5](https://avatars.githubusercontent.com/u/1812397?v=4)](https://github.com/thorstein5 "thorstein5 (3 commits)")[![DanielMuller](https://avatars.githubusercontent.com/u/1829555?v=4)](https://github.com/DanielMuller "DanielMuller (3 commits)")[![inlikealion](https://avatars.githubusercontent.com/u/347072?v=4)](https://github.com/inlikealion "inlikealion (2 commits)")[![codecomputerlove](https://avatars.githubusercontent.com/u/688697?v=4)](https://github.com/codecomputerlove "codecomputerlove (2 commits)")[![louy](https://avatars.githubusercontent.com/u/349850?v=4)](https://github.com/louy "louy (2 commits)")[![slavanga](https://avatars.githubusercontent.com/u/1077807?v=4)](https://github.com/slavanga "slavanga (2 commits)")[![csu](https://avatars.githubusercontent.com/u/164822?v=4)](https://github.com/csu "csu (1 commits)")[![heyallan](https://avatars.githubusercontent.com/u/1783777?v=4)](https://github.com/heyallan "heyallan (1 commits)")[![iBobik](https://avatars.githubusercontent.com/u/614232?v=4)](https://github.com/iBobik "iBobik (1 commits)")[![amiraliakbari](https://avatars.githubusercontent.com/u/336772?v=4)](https://github.com/amiraliakbari "amiraliakbari (1 commits)")[![bnjmnt4n](https://avatars.githubusercontent.com/u/813865?v=4)](https://github.com/bnjmnt4n "bnjmnt4n (1 commits)")[![jeroendesloovere](https://avatars.githubusercontent.com/u/588616?v=4)](https://github.com/jeroendesloovere "jeroendesloovere (1 commits)")[![kchia](https://avatars.githubusercontent.com/u/7776562?v=4)](https://github.com/kchia "kchia (1 commits)")[![kkirsche](https://avatars.githubusercontent.com/u/947110?v=4)](https://github.com/kkirsche "kkirsche (1 commits)")

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

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