PHP code example of webklex / composer-info
1. Go to this page and download the library: Download webklex/composer-info 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/ */
webklex / composer-info example snippets
use Webklex\ComposerInfo\ComposerInfo;
new ComposerInfo();
var_dump(ComposerInfo::getPackage("webklex/composer-info"));
echo ComposerInfo::getPackageVersion("webklex/composer-info");
echo 'your php code...';