PHPackages                             ptheofan/yii2-binpacking2d - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ptheofan/yii2-binpacking2d

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

ptheofan/yii2-binpacking2d
==========================

BinPacking implementation in PHP

19PHP

Since Oct 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ptheofan/yii2-binpacking2d)[ Packagist](https://packagist.org/packages/ptheofan/yii2-binpacking2d)[ RSS](/packages/ptheofan-yii2-binpacking2d/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-binpacking2d
=================

[](#yii2-binpacking2d)

Implementation of BinPacking (2D) in PHP. This is ideal for generating spritesheets, etc. If you are looking for 2D/3D packing for cargo loading then you are looking for a far more extended version of this implementation.

1. Found a bug? Make an issue
2. Want to contribute? Make a pull request.
3. You introduced new attributes such as weight? Make a pull request!
4. Want BinPacking3D? Let's talk about it.

Things that would be nice to implement
--------------------------------------

[](#things-that-would-be-nice-to-implement)

- Try to merge the nodes with neighboring nodes to create bigger rectangles. This will result in even tighter and better distribution.

Install via composer
--------------------

[](#install-via-composer)

"ptheofan/yii2-binpacking2d": "dev-master"

Find my at Packagist
--------------------

[](#find-my-at-packagist)

Have fun!

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/880939?v=4)[Paris](/maintainers/ptheofan)[@ptheofan](https://github.com/ptheofan)

---

Top Contributors

[![ptheofan](https://avatars.githubusercontent.com/u/880939?v=4)](https://github.com/ptheofan "ptheofan (9 commits)")

### Embed Badge

![Health badge](/badges/ptheofan-yii2-binpacking2d/health.svg)

```
[![Health](https://phpackages.com/badges/ptheofan-yii2-binpacking2d/health.svg)](https://phpackages.com/packages/ptheofan-yii2-binpacking2d)
```

PHPackages © 2026

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