PHPackages                             zwartpet/command-ui - 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. zwartpet/command-ui

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

zwartpet/command-ui
===================

Run laravel commands from a web page

1.0.2(1y ago)03MITPHPPHP ^8.2CI passing

Since Mar 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Zwartpet/laravel-command-ui)[ Packagist](https://packagist.org/packages/zwartpet/command-ui)[ Docs](https://github.com/zwartpet/laravel-command-ui)[ RSS](/packages/zwartpet-command-ui/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Laravel Command UI
==================

[](#laravel-command-ui)

[![Latest Version on Packagist](https://camo.githubusercontent.com/125fef547bc4eef309b933ba494c261f56279b1fe4f7ba6991a14d0c942c01bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a776172747065742f636f6d6d616e642d75692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zwartpet/command-ui)[![Test](https://github.com/Zwartpet/laravel-command-ui/actions/workflows/main.yml/badge.svg)](https://github.com/Zwartpet/laravel-command-ui/actions/workflows/main.yml)

Add an admin interface where you can run Laravel commands without the need to SSH into the server.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require zwartpet/command-ui
```

Publish the assets

```
php artisan vendor:publish --tag=command-ui-assets
```

Usage
-----

[](#usage)

The UI is available on the `/command-ui` route, configurable with `COMMAND_UI_URI` in your `.env` file.

The route is protected with a [Laravel Gate](https://laravel.com/docs/12.x/authorization#gates) named `command-ui` which you can customize with `COMMAND_UI_GATE` in your `.env` file. Create the gate by adding the following to your `AuthServiceProvider`, not adding this will result in a 404 error when visiting the route.

```
Gate::define('command-ui', function (User $user) {
    return $user->isAdmin; // or any other logic
});
```

### Configuration

[](#configuration)

This library is plug and play and works out of the box. There are some configuration options available.

The list of commands is filtered by a blacklist or whitelist, by default the blacklist is used.
Publish the configuration to change the lists to your needs.

```
php artisan vendor:publish --tag=command-ui-config
```

For all the configuration options see the [config file](config/config.php).

Testing
-------

[](#testing)

Pest

```
composer test
```

Pint

```
composer test:lint
```

PHPStan

```
composer test:types
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [John Zwarthoed](https://github.com/zwartpet)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance45

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

3

Last Release

432d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9b67e2f2b61ab3ac029ae39fe9129902f1c1651bffb04f855ec36d06241eca3?d=identicon)[Zwartpet](/maintainers/Zwartpet)

---

Top Contributors

[![Zwartpet](https://avatars.githubusercontent.com/u/1200202?v=4)](https://github.com/Zwartpet "Zwartpet (7 commits)")

---

Tags

zwartpetcommand-uilaravel-command-ui

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/zwartpet-command-ui/health.svg)

```
[![Health](https://phpackages.com/badges/zwartpet-command-ui/health.svg)](https://phpackages.com/packages/zwartpet-command-ui)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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