PHP code example of wdalmut / php-deb-describe
1. Go to this page and download the library: Download wdalmut/php-deb-describe 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/ */
wdalmut / php-deb-describe example snippets
use Symfony\Component\Yaml\Parser;
use wdm\debian\Packager;
use wdm\debian\control\StandardFile;
$parser = new Parser();
$packager = new Packager();
$packager->setControl(new StandardFile());
$describer = new Describer($parser, $packager);
echo $describer->compose(file_get_contents("/path/to/file.yml"));
sh
phar-composer.phar build wdalmut/php-deb-describe:dev-master
sh
$(php compile.php)