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

dev-master 2014-10-05 14:45 UTC

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.

  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!