Skip to content

v3.0.0

Compare
Choose a tag to compare
@dvdoug dvdoug released this 23 Oct 20:44
· 665 commits to master since this release

Added

  • Introduced PackedItems which are a wrapper around Items with positional and dimensional information (x, y, z co-ordinates of corner closest to origin, width/length/depth as packed)
  • Added method to set threshold at which weight redistribution is disabled

Changed

  • PackedBox now contains a PackedItemList of PackedItems (rather than an ItemList of Items)
  • ConstrainedItem->canBePackedInBox now takes a PackedItemList of PackedItems (rather than an ItemList of Items)
  • BoxList, ItemList, PackedBoxList have been altered to implement the Traversable interface rather than extend SplHeap directly so that any future changes to the internals will not need an API change
  • Minimum PHP version is now 7.1 (v2 of BoxPacker with it's lower requirement of PHP 5.4 continues to be maintained)

Removed

  • HHVM support now that project has a stated goal of no longer targeting PHP7 compatibility