> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/general/install-acpt-with-composer.md).

# Install ACPT with Composer

How to install ACPT using Composer

ACPT can be installed using [Composer](https://getcomposer.org/).

### Authorization

The `auth.json` file is made up of a username and password field. The username and password are used by Composer to authenticate to our API with HTTP basic authentication.

The username is the ACPT user email, and the password is the license key.

```json
{
  "http-basic": {
    "dash.acpt.io/composer": {
      "username": "mauro@acpt.io",
      "password": "1234567890"
    }
  }
}
```

Please read more about how Composer handles the authentication for private repositories [here](https://getcomposer.org/doc/articles/authentication-for-private-packages.md).

### Add ACPT Repository <a href="#add-our-repository" id="add-our-repository"></a>

Add our repository to your `composer.json` file:

```json
"repositories": [
    {
        "type":"composer",
        "url":"https://dash.acpt.io/composer"
    }
]
```

### Install the Plugin <a href="#install-the-plugin" id="install-the-plugin"></a>

From the CLI, require ACPT using the following command:

```shell-session
composer require acpt/acpt-pro
```

### Version Constraints <a href="#version-constraints" id="version-constraints"></a>

You can use any Composer version constraints, or specify the exact version of the plugin:

```json
"require": {
    "acpt/acpt-pro": "2.0.23"
}
```
