> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/autofix-to/connect-private-packages/composer-private-packages.md).

# Composer - プライベートパッケージ

Aikido がプライベートパッケージを含む依存関係を更新するには、正確な lockfile の更新を生成できるよう、プライベートレジストリへのアクセスが必要です。Composer レジストリは、次のものを提供することで設定できます: `auth.json` ファイル。

## 前提条件 <a href="#prerequisites" id="prerequisites"></a>

**auth.json を準備する**

プライベートな Composer パッケージでは、Aikido は `auth.json` プライベートレジストリで認証するためのファイルを使用します。このファイルは AutoFix の開始前にリポジトリのルートにある auth.json を上書きしますが、Pull Request の一部として追加されることはありません。このファイルでは複数のプライベートレジストリを設定できます。

例 `auth.json` GitHub の Composer レジストリ上のプライベートパッケージにアクセスするための:

```
{
    "github-oauth": {
        "github.com": "<your-github-token>"
    }
}
```

の他の設定オプションは `auth.json` 次で確認できます [こちら](https://getcomposer.org/doc/articles/authentication-for-private-packages.md).

## Aikido での設定 <a href="#configuration-in-aikido" id="configuration-in-aikido"></a>

リポジトリへの書き込みアクセスが設定されたら、以下の手順に従って Aikido がプライベート Composer レジストリで認証するように設定できます:

1. Aikido の Autofix のアカウント設定ページに移動し、 [こちら](https://app.aikido.dev/issues/fix/settings).
2. 「*レジストリを接続*"を付けると、以下のモーダルが表示されます

<figure><img src="/files/93d539d9c2979772d40a2c418b778a2cd588532f" alt=""><figcaption></figcaption></figure>

3. パッケージマネージャーとして「Composer」を選択します

<figure><img src="/files/00db0ff7650c5588185da466adb378e5e666389d" alt=""><figcaption></figcaption></figure>

4. auth.json に認証情報を入力してください。Aikido は、使用直前まで設定ファイルを安全に暗号化します。
5. クリック「*レジストリを接続*"を保存して設定します


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/autofix-to/connect-private-packages/composer-private-packages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
