⚠ PharHub will be closed down in early 2023. More information

PharHub

Install phars via Composer

PharHub is a Composer repository that serves phar files of select PHP tools.

See available packages

Latest releases
  1. phpstan 1.8.6
    (yesterday)
  2. infection 0.26.15
    (a week ago)
  3. php-coveralls 2.5.3
    (2 weeks ago)
Most popular packages
  1. phpunit (3854×)
  2. psalm (3927×)
  3. composer-require-checker (359×)
  4. php-cs-fixer (9359×)
  5. phan (502×)

Add the following to your project's composer.json:

{
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.pharhub.dev/"
        }
    ]
}

... or run the following command once:

composer config repositories.pharhub composer https://packages.pharhub.dev/

Then you may require packages from this repository. For example, the following command will install the latest available version of PHPUnit:

composer require --dev pharhub/phpunit

You can read more about custom repositories in Composer's documentation.

Run the following command once to register the PharHub repository:

composer global config repositories.pharhub composer https://packages.pharhub.dev/

Then you may install phars globally. For example, the following command will install php-cs-fixer:

composer global require pharhub/php-cs-fixer