PHPackages                             bjorvack/image-stacker - 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. bjorvack/image-stacker

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

bjorvack/image-stacker
======================

Image stacker is a package to combine different images to one single image.

0.3(9y ago)047MITPHPPHP &gt;=5.5.0

Since Sep 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/bjorvack/image-stacker)[ Packagist](https://packagist.org/packages/bjorvack/image-stacker)[ RSS](/packages/bjorvack-image-stacker/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (7)Used By (0)

Image stacker
=============

[](#image-stacker)

[![Latest Version](https://camo.githubusercontent.com/70299bfc8a35b9d00aaf693af651074abad012f3a014e5296d8373b13be7834f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f626a6f727661636b2f696d6167652d737461636b65722e7376673f7374796c653d666c61742d737175617265)](https://github.com/bjorvack/image-stacker/releases)[![GitHub issues open](https://camo.githubusercontent.com/ffe6068bdd20506676e9487d7c07180dd87f1bcbaaea8d4f63478e25f244f26b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7261772f626a6f727661636b2f696d6167652d737461636b65722e7376673f7374796c653d666c61742d737175617265266d61784167653d32353932303030)](https://github.com/bjorvack/image-stacker/issues)[![Packagist](https://camo.githubusercontent.com/40469eddfb3d510e8ed19a22e543e3592630207bca3044323c04c13f33e7b5f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f637472696e652f6f726d2e7376673f7374796c653d666c61742d737175617265266d61784167653d32353932303030)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4e9acaaffec45a2bbedb30a40cb33bc4508f940179cb6bf0b0f74c57b9d12991/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626a6f727661636b2f696d6167652d737461636b65722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bjorvack/image-stacker)

Image stacker is a package to combine different images to one single image.

Instalation
-----------

[](#instalation)

```
composer install bjorvack/image-stacker

```

Usage
-----

[](#usage)

### Creating a new stack

[](#creating-a-new-stack)

Creating a new stack only requires a stack name. Giving the stack additional parameters like max width or height limits the way the stack can grow.

```
$stacker = new Stacker('name');
$stacker = new Stacker('name', , , , );
```

### Adding images to the stack

[](#adding-images-to-the-stack)

Using the the `addImage` function an `Image` object can be added to the stack.

An Image needs a path and a name attribute. If the width / height aren't provided the size of the file is loaded from the file itself.

```
$image = new Image('path', 'name', , );
$stacker->addImage($image);
```

### Creating the stacked image

[](#creating-the-stacked-image)

```
$image = Image::createFromStacker($stacker, 'storagepath');
```

### Getting the position of an image in the stack

[](#getting-the-position-of-an-image-in-the-stack)

When the stack function is called the `x` and `y` attributes for the images are set. You can access the using the `getX` and `getY` functions.

```
foreach($stacker->getImages() as $image) {
    $image->getY();
    $image->getX();
}
```

### Exporters

[](#exporters)

A stack can be exported as a `.json` file or a `.css` file. The `.png` file is made automatically.

```
$stacker = new Stacker('name');

JsonExporter::save($stacker, 'path');
StylesheetExporter::save($stacker, 'path');
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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 ~7 days

Total

3

Last Release

3562d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3007416?v=4)[Bjorn Van Acker](/maintainers/bjorvack)[@bjorvack](https://github.com/bjorvack)

---

Top Contributors

[![bjorvack](https://avatars.githubusercontent.com/u/3007416?v=4)](https://github.com/bjorvack "bjorvack (10 commits)")

---

Tags

image-manipulationphpphp-libraryimagemergecombinemerger-tool

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bjorvack-image-stacker/health.svg)

```
[![Health](https://phpackages.com/badges/bjorvack-image-stacker/health.svg)](https://phpackages.com/packages/bjorvack-image-stacker)
```

###  Alternatives

[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k53.3M143](/packages/league-glide)[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M161](/packages/intervention-image-laravel)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M82](/packages/unisharp-laravel-filemanager)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506516.3k27](/packages/bkwld-croppa)[lasserafn/php-initial-avatar-generator

A package to generate avatars with initials for PHP

4404.4M15](/packages/lasserafn-php-initial-avatar-generator)[laravel-at/laravel-image-sanitize

A small but handy package to prevent malicious code execution coming into your application through uploaded image files.

33866.8k](/packages/laravel-at-laravel-image-sanitize)

PHPackages © 2026

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