php-laff icon indicating copy to clipboard operation
php-laff copied to clipboard

Largest Area Fit First (LAFF) 3D box packing algorithm class for PHP

Results 5 php-laff issues
Sort by recently updated
recently updated
newest added

Using your example1.php and replacing with... ['length' => 1, 'width' => 1, 'height' => 100] results in "Container 100x1x100(cm) 10000(cm3)" Whereas ['length' => 100, 'width' => 1, 'height' => 1]...

bug

If you extend this script to also support an array of possible container sizes, and then finding the combination that fits all boxes, it would be even more perfect :)...

enhancement
help-wanted

Hello. It's great that you can see which level the items are on afterward. I need to be able to specify the level, i.e., heavier items need to be restricted...

enhancement

I have tested your class and it works great every time. Very good work. I actually have a questions: where do I get the location of the boxes inside the...

question

I use the following code to get the combined package width, height and depth. ```php $packer = new Packer(); $packer->addBox(new TestBox('8x10', 100, 10, 10, 0, 100, 10, 10, 60)); $packer->addBox(new...

question
help-wanted