PHPackages                             clippings/fluid-gallery - 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. clippings/fluid-gallery

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

clippings/fluid-gallery
=======================

Arrange Images with percentages

0.4.0(6y ago)294.6kBSD-3-ClausePHPPHP &gt;=7.1.0CI failing

Since Jun 11Pushed 6y ago27 watchersCompare

[ Source](https://github.com/clippings/fluid-gallery)[ Packagist](https://packagist.org/packages/clippings/fluid-gallery)[ RSS](/packages/clippings-fluid-gallery/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Fluid Gallery
=============

[](#fluid-gallery)

[![Build Status](https://camo.githubusercontent.com/9e8dadb04e220f8ddf9afcc23fe90bf6e018c4c96bf26671d07bf04448761de1/68747470733a2f2f7472617669732d63692e6f72672f636c697070696e67732f666c7569642d67616c6c6572792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/clippings/fluid-gallery)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8f02ae82741742c851ac4356de5988c18f039a416a6e2f4e3c363626bef871b2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636c697070696e67732f666c7569642d67616c6c6572792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/clippings/fluid-gallery/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/7e5494ee8e1d4f72a92b3eff4249b24d7baebcef537bca097a5cb40a1818cd39/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636c697070696e67732f666c7569642d67616c6c6572792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/clippings/fluid-gallery/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b5c1d8e5d712b27fac8797010d0a060cc4e91206a7b8d68a8873115ab354847c/68747470733a2f2f706f7365722e707567782e6f72672f636c697070696e67732f666c7569642d67616c6c6572792f762f737461626c65)](https://packagist.org/packages/clippings/fluid-gallery)

Arrange Images with percentages

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

[](#installation)

Install via composer

```
composer require clippings/fluid-gallery

```

Usage
-----

[](#usage)

Conseptually, you pile images (or videos) into a ItemGroup and then line by line extract using custom sizing logic.

```
$gallery = new ItemGroup([
    new Item(100, 200, 'http://example.com/1.jpg'),
    new Item(200, 100, 'http://example.com/2.jpg'),
    new Item(100, 100, 'http://example.com/3.jpg'),
    new Item(300, 200, ['url' => 'http://example.com/video.mov', 'type' => 'video']),
]);

$gallery->setMargin(15);

// extract some of the images into another group
$group = $gallery->extract(function ($group) {

    // The returned items are removed from the parent gallery
    return $group
        // get only images with text urls
        ->filter(function (Item $item) {
            return is_string($item->getContent());
        })
        // set the hight of all the images to 50, preserving the aspect ratios
        ->setHeight(50)
        // Get a slice of the images, arranged horizontally, no wider than 200 pixels
        ->horizontalSlice(200)
        // Scale horizontally arranged images to exactly 200, keeping aspect ratios
        ->scaleToWidth(200);
});

foreach ($group as $item) {
    echo $item->getContent();
}

// Get the remaining items
echo $gallery[0]->getContent()['url'];
```

License
-------

[](#license)

Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin

Under BSD-3-Clause license, read LICENSE file.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~284 days

Recently: every ~426 days

Total

7

Last Release

2288d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4113307?v=4)[Danail Kyosev](/maintainers/dkyosev)[@dkyosev](https://github.com/dkyosev)

![](https://avatars.githubusercontent.com/u/7592650?v=4)[Evstati Zarkov](/maintainers/EZarkov)[@EZarkov](https://github.com/EZarkov)

---

Top Contributors

[![ivank](https://avatars.githubusercontent.com/u/4976?v=4)](https://github.com/ivank "ivank (12 commits)")[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (5 commits)")[![MartinAndreev](https://avatars.githubusercontent.com/u/5702761?v=4)](https://github.com/MartinAndreev "MartinAndreev (2 commits)")[![stanstst](https://avatars.githubusercontent.com/u/9391542?v=4)](https://github.com/stanstst "stanstst (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clippings-fluid-gallery/health.svg)

```
[![Health](https://phpackages.com/badges/clippings-fluid-gallery/health.svg)](https://phpackages.com/packages/clippings-fluid-gallery)
```

###  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)[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)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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