Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ThaDafinser/PackageInfo
Installed composer packages info
https://github.com/ThaDafinser/PackageInfo
Last synced: 3 months ago
JSON representation
Installed composer packages info
- Host: GitHub
- URL: https://github.com/ThaDafinser/PackageInfo
- Owner: ThaDafinser
- Created: 2016-08-08T13:00:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-09T11:15:35.000Z (about 8 years ago)
- Last Synced: 2024-07-07T16:24:18.720Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-composer - PackageInfo - Enables you to retrieve all package informations (like version, tag, release date, description). (Plugins / Support)
README
# PackageInfo
[![Build Status](https://travis-ci.org/ThaDafinser/PackageInfo.svg)](https://travis-ci.org/ThaDafinser/PackageInfo)
[![Code Coverage](https://scrutinizer-ci.com/g/ThaDafinser/PackageInfo/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/ThaDafinser/PackageInfo/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ThaDafinser/PackageInfo/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ThaDafinser/PackageInfo/?branch=master)[![Latest Stable Version](https://poser.pugx.org/thadafinser/package-info/v/stable)](https://packagist.org/packages/thadafinser/package-info)
[![Latest Unstable Version](https://poser.pugx.org/thadafinser/package-info/v/unstable)](https://packagist.org/packages/thadafinser/package-info)
[![License](https://poser.pugx.org/thadafinser/package-info/license)](https://packagist.org/packages/thadafinser/package-info)
[![Total Downloads](https://poser.pugx.org/thadafinser/package-info/downloads)](https://packagist.org/packages/thadafinser/package-info)This package was highly inspired from [ocramius/package-versions](https://github.com/Ocramius/PackageVersions/)
I needed some methods to read data from the `composer.lock` file fast...this is the result
```php
$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();
// ...
```