PHP code example of meesterdev / package-parser
1. Go to this page and download the library: Download meesterdev/package-parser 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/ */
meesterdev / package-parser example snippets
use MeesterDev\PackageParser\Parsers\ParserFactory;
$parser = ParserFactory::createForFilePath('composer.json');
$parser->ignoreLicenses(['proprietary', 'UNLICENSED']);
$packages = $parser->parse();
var_dump($packages, $factory->skippedPackages, $factory->failedPackages); // probably a pretty long dump