Download the PHP package phar-io/composer-distributor without Composer
On this page you can find all versions of the php package phar-io/composer-distributor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phar-io/composer-distributor
More information about phar-io/composer-distributor
Files in phar-io/composer-distributor
Package composer-distributor
Short Description Base Code for a composer plugin that installs PHAR-files
License MIT
Homepage https://phar.io
Informations about the package composer-distributor
Deploying PHAR files via Composer
If you have a tool that behaves like a binary and want to distribute this tool as a PHAR file instead of the source-code but don't want to give up the convenience to install your tool via Composer you can use this library to create a Composer-Plugin that deals with this in no time.
Motivation
Tools like PHPUnit
, PHPStan
, Psalm
and many others are best installed as PHAR to avoid
version conflicts between your dev tools and your own source code. But since so many developers
just want to use Composer
to install all the tools this project was created to simplify the
deployment of PHAR files via Composer
.
Create your own
To create a Composer-Plugin that installs your PHAR files follow these 3 steps.
Step 1 - Create your Composer-Plugin
The easiest way is to run the following command and follow the instructions.
This will create the plugin in the specified directory.
Make sure the information in your distibutor.xml
configuration is correct.
Step 2 - Create a Composer package for your plugin on packagist
Create a git repository for your plugin on the platform of your choosing. Then head over to packagist.org and set up a Composer package for your plugin.
⚠️ REMINDER ⚠️
Remember to tag your plugin repository as well whenever you release a new version.
Step 3 - Enjoy your PHAR deployment
Now everybody can install your PHAR by running the following command.
All versions of composer-distributor with dependencies
ext-dom Version *
ext-libxml Version *
composer-plugin-api Version ^1.1 || ^2.0
phar-io/gnupg Version ^1.0
phar-io/filesystem Version ^2.0