PHPackages                             garrett9/laravel-container-command - 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. garrett9/laravel-container-command

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

garrett9/laravel-container-command
==================================

Allows you to execute Laravel commands from your CLI in a Docker container. Useful if your command interacts with other software hosted in your Docker container.

011PHP

Since Nov 4Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Allows you to execute Laravel commands from your CLI in a Docker container. Useful if your command interacts with other software hosted in your Docker container.
=================================================================================================================================================================

[](#allows-you-to-execute-laravel-commands-from-your-cli-in-a-docker-container-useful-if-your-command-interacts-with-other-software-hosted-in-your-docker-container)

Allows you to execute Laravel commands from your CLI in a Docker container. Useful if your command interacts with other software hosted in your Docker container.

The assumption is that this package will only ever be used for local development since any commands you run in production should already be in the container.

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

[](#installation)

You can install the package via composer:

```
composer require garrett9/laravel-container-command
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-container-command-config"
```

Usage
-----

[](#usage)

```
use Garrett9\ContainerCommand\Commands\ContainerCommand;

class SendRegisterInvitation extends ContainerCommand
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'my:command {parameter1} {parameter2}';
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Garrett](https://github.com/garrett9)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/560eac88959322b0f08c4b1c2be5440752b176ecf72e23be42d9d5d945d73421?d=identicon)[garrett9](/maintainers/garrett9)

---

Top Contributors

[![garrett9](https://avatars.githubusercontent.com/u/9288245?v=4)](https://github.com/garrett9 "garrett9 (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/garrett9-laravel-container-command/health.svg)

```
[![Health](https://phpackages.com/badges/garrett9-laravel-container-command/health.svg)](https://phpackages.com/packages/garrett9-laravel-container-command)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

22569.8M18](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[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)

PHPackages © 2026

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