Composer Setup

Your license key

Login to your account at the Yireo Shop. Navigate to My Account and then My Software. In the overview of software subscriptions, pick the one of your choice and click Details. On the detail page, you can find details of your software subscription, including the license key. Copy the license key. Below, it is referenced as YOURLICENSE.

Register the license key in composer

Run the following commands in your Magento project. Replace YOURDOMAIN with the domain name of your Magento instance (for instance, example.com) and YOURLICENSE with the actual license key.

composer config --auth http-basic.composer.yireo.com YOURDOMAIN YOURLICENSE

After this, you should have a auth.json file with the following details. Note that this file could be located in the root of your Magento directory, in the home of composer (identified with the shell variable $COMPOSER_HOME) or theoretically elsewhere. You probably know best:

{
    "http-basic": {
        "composer.yireo.com": {
            "username": "YOURDOMAIN",
            "password": "YOURLICENSE"
        }
    }
}

Configure the composer.yireo.com repository

Now, configure the composer.yireo.com repository in your main composer.json by running the following command:

composer config repositories.yireo composer https://composer.yireo.com/

After this, your composer.json should be including a repository like the following (and note that the rest of your composer.json file is not taken into account here):

{
    "repositories": {
        "yireo-composer": {
            "type": "composer",
            "url": "https://composer.yireo.com/"
        }
    }
}
Last modified: April 8, 2025