⚠ 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. box 4.2
    (6 days ago)
  2. phpstan 1.9.2
    (3 weeks ago)
  3. phpstan 1.9.1
    (3 weeks ago)
Most popular packages
  1. phpunit (3854×)
  2. psalm (3927×)
  3. composer-require-checker (761×)
  4. php-cs-fixer (9849×)
  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