PHP code example of silvanite / composer-reader
1. Go to this page and download the library: Download silvanite/composer-reader 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/ */
silvanite / composer-reader example snippets
$installed = Composer::read()->has('my/package');
$installed = Composer::read('./path/to/composer.json')->has('my/package');
$installed = Composer::read()->()->
$version = Composer::read()->version('my/package');