Download the PHP package drupol/composer-packages without Composer
On this page you can find all versions of the php package drupol/composer-packages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drupol/composer-packages
More information about drupol/composer-packages
Files in drupol/composer-packages
Package composer-packages
Short Description Composer Packages is a Composer plugin for getting information about installed packages in your project.
License MIT
Informations about the package composer-packages
![Latest Stable Version][latest stable version] ![GitHub stars][github stars] ![Total Downloads][total downloads] ![GitHub Workflow Status][github workflow status] [![Scrutinizer code quality][code quality]][code quality link] ![Type Coverage][type coverage] [![Code Coverage][code coverage]][code quality link] ![License][license] ![Donate!][donate github]
Composer Packages
Description
Composer Packages is a Composer plugin for getting information about installed packages in your project.
It could be very useful for anyone who wants to build a package discovery system, crawling the filesystem is then not needed.
Documentation
This package provides:
- An easy way to get information about installed packages,
- An easy way to retrieve packages that has a particular types,
- An easy way to find the installation directory of a package,
- An easy way to get any package version,
- An easy way to get any package dependencies.
How does it work ?
When doing a composer update
or composer install
, the plugin will generate
classes that are going to be automatically loaded by the Composer autoload
system.
Those classes contains statical information about packages that are installed in your project. Among those static data, it also contains some useful methods. The number of methods in those classes can very depending on the number of packages that are in your project.
This package idea has been inspired by the package ocramius/package-versions from the amazing Marco Pivetta.
Requirements
- PHP $\geq$ 7.1.3
Installation
composer require drupol/composer-packages --dev
Usage
To get packages of a particular type
To get a package
To get an installation directory
To get a package version
To get a package dependencies
Note: If composer is not already installed, you might get an error like below when using this package:
If you do, you can explicitly require composer in your project, to ensure it's available:
To get a package version
Code quality and tests
Every time changes are introduced into the library, Github run the tests and the benchmarks.
The library has tests written with PHPUnit.
Before each commit some inspections are executed with
GrumPHP, run ./vendor/bin/grumphp run
to
trigger them manually.
PHPInfection is used to ensure that
your code is properly tested, run composer infection
to test your code.
Contributing
Feel free to contribute by sending pull requests. We are a usually very responsive team and we will help you going through your pull request from the beginning to the end.
For some reasons, if you can't contribute to the code and willing to help, sponsoring is a good, sound and safe way to show us some gratitude for the hours we invested in this package.
Sponsor me on Github and/or any of the contributors.
[latest stable version]: https://img.shields.io/packagist/v/drupol/composer-packages.svg?style=flat-square
[github stars]: https://img.shields.io/github/stars/drupol/composer-packages.svg?style=flat-square [total downloads]: https://img.shields.io/packagist/dt/drupol/composer-packages.svg?style=flat-square [github workflow status]: https://img.shields.io/github/workflow/status/drupol/composer-packages/Unit%20tests?style=flat-square
[code quality]: https://img.shields.io/scrutinizer/quality/g/drupol/composer-packages/master.svg?style=flat-square [code quality link]: https://scrutinizer-ci.com/g/drupol/composer-packages/?branch=master [type coverage]: https://shepherd.dev/github/drupol/composer-packages/coverage.svg
[code coverage]: https://img.shields.io/scrutinizer/coverage/g/drupol/composer-packages/master.svg?style=flat-square [code quality link]: https://img.shields.io/scrutinizer/quality/g/drupol/composer-packages/master.svg?style=flat-square [license]: https://img.shields.io/packagist/l/drupol/composer-packages.svg?style=flat-square [donate github]: https://img.shields.io/badge/Sponsor-Github-brightgreen.svg?style=flat-square
[donate paypal]: https://img.shields.io/badge/Sponsor-Paypal-brightgreen.svg?style=flat-square
All versions of composer-packages with dependencies
composer-plugin-api Version ^1 || ^2
composer/composer Version ^2.0.0
twig/twig Version ^2.12.1 || ^3.0