PHP code example of thadafinser / package-info
1. Go to this page and download the library: Download thadafinser/package-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/ */
thadafinser / package-info example snippets
$bool = \PackageInfo\Package::isInstalled('vendor/package-name'); // return true/false
// may throw PackageNotInstalledException if the package is not installed
$package = new \PackageInfo\Package('vendor/package-name');
$package->getName();
$package->getDescription();
$package->getVersion();
$package->getType();
$package->getKeywords();
// ...