PHPackages                             tomk79/px2-assistant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tomk79/px2-assistant

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tomk79/px2-assistant
====================

0.2.0(1y ago)0106MITPHPPHP &gt;=7.3.0

Since Apr 5Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/tomk79/px2-assistant)[ Packagist](https://packagist.org/packages/tomk79/px2-assistant)[ RSS](/packages/tomk79-px2-assistant/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (6)Used By (0)

px2-assistant
=============

[](#px2-assistant)

[Pickles 2](https://pickles2.com/) にAIアシスタントを追加する管理画面拡張です。

Usage - 使い方
-----------

[](#usage---使い方)

### インストール

[](#インストール)

```
composer require tomk79/px2-assistant

```

### セットアップ

[](#セットアップ)

`px-files/config.php` の `$conf->plugins->px2dt->custom_console_extensions` に、 `px2-assistant` の設定を追加する。

```
	$conf->plugins->px2dt->custom_console_extensions = array(
	    'px2-assistant' => array(
			'class_name' => \tomk79\pickles2\assistant\cce\main::register(array(
				"models" => array(
					"chat" => array(
						"openai-gpt-3.5-turbo" => array(
							"url" => "https://api.openai.com/v1/chat/completions",
							"model" => "gpt-3.5-turbo",
							"label" => "OpenAI gpt-3.5-turbo",
						),
                        ...
					),
				),
			)),
			'capability' => array('manage'),
		),
	);
```

OpenAI、 Google、 Anthropic のモデルを使用するには、次の環境変数にアクセスキーをセットしてください。

```
# .env

# OpenAI
OPENAI_API_KEY="xx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
OPENAI_ORG_ID="org-xxxxxxxxxxxxxx" # optional

# Google Gemini
GEMINI_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

# Anthropic Claude
ANTHROPIC_API_KEY="xx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
```

更新履歴 - Change log
-----------------

[](#更新履歴---change-log)

### tomk79/px2-assistant v0.2.0 (2025年5月9日)

[](#tomk79px2-assistant-v020-2025年5月9日)

- configにAPIキーを直接設定できないようになった。

### tomk79/px2-assistant v0.1.1 (2025年4月7日)

[](#tomk79px2-assistant-v011-2025年4月7日)

- メッセージに画像ファイルを添付できるようになった。
- 誤植修正: `ANTHOROPIC_API_KEY` -&gt; `ANTHROPIC_API_KEY`

### tomk79/px2-assistant v0.1.0 (2025年4月5日)

[](#tomk79px2-assistant-v010-2025年4月5日)

- Initial Release

ライセンス - License
---------------

[](#ライセンス---license)

MIT License

作者 - Author
-----------

[](#作者---author)

- Tomoya Koyanagi
- website:
- Twitter: @tomk79

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance53

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Total

4

Last Release

281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00ca3b0b7c69b5a8c25bbfb82b305ab94c4fc7458b38df445cbb97acc073875f?d=identicon)[tomk79](/maintainers/tomk79)

---

Top Contributors

[![tomk79](https://avatars.githubusercontent.com/u/584845?v=4)](https://github.com/tomk79 "tomk79 (62 commits)")

---

Tags

pickles2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomk79-px2-assistant/health.svg)

```
[![Health](https://phpackages.com/badges/tomk79-px2-assistant/health.svg)](https://phpackages.com/packages/tomk79-px2-assistant)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
