PHP code example of louzet / composer-lock-file-parser
1. Go to this page and download the library: Download louzet/composer-lock-file-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/ */
louzet / composer-lock-file-parser example snippets
declare(strict_types=1);
FileParser;
$parser = FileParser::parse('resources/composer.lock');
if ($parser->nameExists('bower-asset/bootstrap')) {
// do some stuff
print_r($parser->getByName('bower-asset/bootstrap'));
}