PHP code example of survos / periodical-grouping
1. Go to this page and download the library: Download survos/periodical-grouping 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/ */
survos / periodical-grouping example snippets
use Survos\PeriodicalGrouping\GroupingEngine;
$proposal = (new GroupingEngine())->prepare([
'issueId' => $issueId,
'sourceHash' => $sourceHash, // SHA-256 of retained source layouts, computed by producer
'pages' => $pages,
]);
sh
vendor/bin/group.php < issue-input.json > proposal.json