Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ptheofan/yii2-binpacking2d

Implementation of BinPacking (2D) in PHP
https://github.com/ptheofan/yii2-binpacking2d

Last synced: about 2 months ago
JSON representation

Implementation of BinPacking (2D) in PHP

Awesome Lists containing this project

README

        

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
--------------------------------------
* Try to merge the nodes with neighboring nodes to create bigger rectangles. This will result in even tighter and better distribution.

Install via composer
--------------------
"ptheofan/yii2-binpacking2d": "dev-master"

Find my at Packagist
--------------------
https://packagist.org/packages/ptheofan/yii2-binpacking2d

Have fun!