PHPackages                             revolution/arty - 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. [CLI &amp; Console](/categories/cli)
4. /
5. revolution/arty

AbandonedArchivedProject[CLI &amp; Console](/categories/cli)

revolution/arty
===============

artisan only application

9.x-dev(3y ago)321MITPHPPHP ^8.0

Since Mar 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kawax/arty)[ Packagist](https://packagist.org/packages/revolution/arty)[ RSS](/packages/revolution-arty/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (8)Versions (5)Used By (0)

Artisan only application
========================

[](#artisan-only-application)

[![Build Status](https://camo.githubusercontent.com/57b5d5db8e95dcce8bf6f832e96e0cb3c0a6041c1cb63be1ca2b0e73fc1c9350/68747470733a2f2f7472617669732d63692e636f6d2f6b617761782f617274792e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/kawax/arty)[![Maintainability](https://camo.githubusercontent.com/ebe6344400b71006e789afe3b26d296a7fa764032d292e4979d233fd2e3fc9a8/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61633264396131363639363533623466323461652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/kawax/arty/maintainability)[![Test Coverage](https://camo.githubusercontent.com/d9e0572c61337e8cc070f244798dca16f42d15602c55f1618b910c09b9754e93/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61633264396131363639363533623466323461652f746573745f636f766572616765)](https://codeclimate.com/github/kawax/arty/test_coverage)

終了（2024-03）
-----------

[](#終了2024-03)

`discord-manager`v5で稼働し続けるbot機能を終了したのと、Laravel11で「consoleのみ」のアプリも構成しやすくなったのでここは終了。

概要
--

[](#概要)

- 主にDiscord botを想定したartisanコマンドのみのアプリを作るためのテンプレート
- artisanコマンドでできることは大体何でも可能なので他の用途にも使えるけどそれならLaravelかLaravel Zeroを直接使えばいい。
- Laravel Zero
- GitHub Actions、GitLab CIなどを使ってサーバーレスでの稼働が目標

Create project
--------------

[](#create-project)

```
composer create-project --prefer-dist revolution/arty:dev-master discord-bot && cd $_

```

`php arty`でコマンドリスト表示。

### GitHubのTemplateから作成した場合

[](#githubのtemplateから作成した場合)

手動での.envコピーなどが必要。

```
cp .env.example .env
composer install

```

Laravel Zeroから追加した機能
--------------------

[](#laravel-zeroから追加した機能)

- Laravel Notification
    -

通知先を増やせばDiscord以外にも簡単に対応できる。

Discord test
------------

[](#discord-test)

`.env`を設定後`php arty discord:test`で指定のチャンネルに投稿されれば成功。

このようにコマンド1回実行するだけであればGitLab CIで定期的に実行が可能。（最短間隔はおそらく1時間）
Laravelのスケジュール機能は使わない。
次回のコマンド実行時になんらかのデータを引き継ぎたい場合はキャッシュかStorageを使う。

Discord serve
-------------

[](#discord-serve)

`php arty discord:serve`ではbotを起動し続ける。
メッセージを受け取って返すようなbotを作るにはサーバー上で動かし続ける必要がある。

GitLab CIでは無理そうだけどtimeoutが1時間なので1時間毎に再実行し続ければ可能かもしれない。
この場合はDB使ったりもっと複雑なbotを作るだろうからGitLab CIには向いてない。無料プランでは月間の制限時間もある。

コマンドや通知の作成
----------

[](#コマンドや通知の作成)

Laravelと同じ。

```
php arty make:command TestCommand
php arty make:notification TestNotification

```

Discordコマンド作成
-------------

[](#discordコマンド作成)

作成場所は`app/Discord`固定。

```
php arty make:discord:command NewChannelCommand
php arty make:discord:direct NewDmCommand

```

artyファイル名の変更
------------

[](#artyファイル名の変更)

```
php arty app:rename artisan

```

```
php artisan

```

Dockerで使う
---------

[](#dockerで使う)

```
docker-compose run arty {command}

```

```
docker-compose run --rm arty discord:test

```

```
docker-compose run --entrypoint '' --rm arty composer install

```

```
docker-compose run --entrypoint '' --rm arty vendor/bin/phpunit

```

最初にcomposer create-projectで作ってるならphpもcomposerも動くはずだけど。 CIで必要になるかもしれない。

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~359 days

Total

4

Last Release

1174d ago

Major Versions

6.x-dev → 7.x-dev2020-09-15

7.x-dev → 8.x-dev2022-02-24

8.x-dev → 9.x-dev2023-02-26

PHP version history (4 changes)6.x-devPHP ^7.2

7.x-devPHP ^7.2.5

8.x-devPHP ^7.4||^8.0

9.x-devPHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77618633?v=4)[Revolution](/maintainers/revolution)[@Revolution](https://github.com/Revolution)

---

Top Contributors

[![kawax](https://avatars.githubusercontent.com/u/1502086?v=4)](https://github.com/kawax "kawax (1312 commits)")

---

Tags

arty

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/revolution-arty/health.svg)

```
[![Health](https://phpackages.com/badges/revolution-arty/health.svg)](https://phpackages.com/packages/revolution-arty)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[recca0120/terminal

run laravel artisan command in web application

878410.9k2](/packages/recca0120-terminal)[tomasvotruba/bladestan

PHPStan rule for static analysis of Blade templates

363584.5k4](/packages/tomasvotruba-bladestan)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)

PHPackages © 2026

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