PHP code example of cloudstek / php-laff
1. Go to this page and download the library: Download cloudstek/php-laff library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cloudstek / php-laff example snippets
// Initialize boxes array
$boxes = array(
array(
'length' => 50,
'width' => 35,
'height' => 23
),
array(
'length' => 18,
'width' => 38,
'height' => 16
)
);
// Initialize Packer
$laff = new \Cloudstek\PhpLaff\Packer();
$laff->pack($boxes);
// or
$laff = new \Cloudstek\PhpLaff\Packer($boxes);
$laff->pack();
composer