ENGINE / packvium/packvium
PHP engine
Second reference engine: the same solver portfolio and extension points as Python, byte-identical on every fixture.
INSTALL
composer require packvium/packviumFIRST CALL
// composer require packvium/packvium
use Packvium\Config\PackingConfig;
use Packvium\Domain\Container;
use Packvium\Domain\Dimensions;
use Packvium\Domain\Item;
use Packvium\Packer;
$result = (new Packer(PackingConfig::balanced()))->pack(
[Item::create('sku', Dimensions::mm('100', '80', '40'), '500 g', quantity: 4)],
[Container::create('box', Dimensions::mm('250', '200', '100'), maxPayload: '10 kg')],
);
var_dump($result->complete(), $result->toArray());- Version
- 1.11.0
- Requires
- PHP >= 7.3
- License
- MIT
- Role
- Engine
- Registry
- Packagist
- Availability
- published
EVIDENCE
Held to the same fixtures as every other engine.
A package is not a separate product with its own quality level. It runs the shared corpus, and where its guarantees differ from the reference engines, the difference is documented rather than implied.