PHP code example of gopromotional / packlist
1. Go to this page and download the library: Download gopromotional/packlist 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/ */
gopromotional / packlist example snippets
use GoPromotional\PackList\PackList;
$items = PackList::buildList(['trade-show'], nights: 0, extras: ['Tote bags']);
PackList::mark($items, 'gaffer'); // unique substring match
PackList::progress($items); // ['packed' => 1, 'total' => 17, 'percent' => 6]
file_put_contents('expo.md', PackList::toMarkdown($items, 'Expo'));
['title' => $title, 'items' => $back] = PackList::parseMarkdown(file_get_contents('expo.md'));