dvdoug / boxpacker
3D bin packing with weight: cartonize orders into parcels, or fill a single container / pallet and leave leftover cargo unpacked
Fund package maintenance!
Requires (Dev)
- behat/behat: ^3.27
- dvdoug/behat-code-coverage: ^5.3
- friendsofphp/php-cs-fixer: ^3.93.1
- monolog/monolog: ^3.9
- phpunit/phpunit: ^11.5.44||^12.4.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master / 4.x-dev
- 4.3.0
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.12.1
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.4
- 3.9.3
- 3.9.2
- 3.9.1
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.2
- 3.6.1
- 3.6.0
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.8
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.2
- 2.0.1
- 2.0
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5
- 1.4.2
- 1.4.1
- 1.4
- 1.3
- 1.2
- 1.1
- 1.0.1
- 1.0
- 0.4
- 0.3
- 0.2
- 0.1
- dev-experiment
This package is auto-updated.
Last update: 2026-08-16 17:55:14 UTC
README
An implementation of the 3D bin packing problem with weight as a fourth constraint: given items and a catalogue of boxes, how many cartons do you need, and what goes in each?
The same engine can also fill a single container (pallet, trailer, ocean box) as densely as possible and leave the rest unpacked.
Typical uses: e-commerce cartonization and shipping-cost calculation, warehouse box selection, and one-container load planning.
- Your own Item/Box objects (no wrapper DTOs)
- Rotation: any way up, keep-flat, or none
- Weight limits and automatic weight balancing across cartons
- Limited box stock, linked items, custom placement rules
- Packed x/y/z coordinates and a 3D visualiser
Requires PHP 8.2+. composer require dvdoug/boxpacker
See documentation for more details.
License
BoxPacker is MIT-licensed.