> 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 がプライベートパッケージを含む依存関係を更新するには、正確なロックファイル更新を生成できるように、プライベートレジストリへのアクセスが必要です。Composer レジストリは、以下を指定することで設定できます `auth.json` ファイル。

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

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

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

例 `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.
