ptheofan / yii2-binpacking2d
BinPacking implementation in PHP
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-17 05:22:38 UTC
README
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!