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.
- Found a bug? Make an issue
- Want to contribute? Make a pull request.
- You introduced new attributes such as weight? Make a pull request!
- 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!
Comments