PHPackages                             queents/console-helpers - 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. queents/console-helpers

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

queents/console-helpers
=======================

tons of helper you need for you artisan command line application

v1.0.0(3y ago)039.8k—8.6%[1 issues](https://github.com/queents/console-helpers/issues)4MITPHP

Since Dec 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/queents/console-helpers)[ Packagist](https://packagist.org/packages/queents/console-helpers)[ GitHub Sponsors](https://github.com/3x1io)[ RSS](/packages/queents-console-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (4)

Laravel Console Helpers
=======================

[](#laravel-console-helpers)

tons of helper you need for you artisan command line application

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

[](#installation)

```
composer require queents/console-helpers
```

Usage
-----

[](#usage)

we have a Traits that you can use in your artisan command class

### Run PHP Command

[](#run-php-command)

you can run direct php command like this

```
use Queents\ConsoleHelpers\Traits\RunCommand;

class MyCommand extends Command{
    use RunCommand;
}
```

```
$this->phpCommand('echo "welcome";');
```

### Run Yarn Command

[](#run-yarn-command)

you can run direct yarn command like this

```
use Queents\ConsoleHelpers\Traits\RunCommand;

class MyCommand extends Command{
    use RunCommand;
}
```

```
$this->yarnCommand('echo "welcome";');
```

**NOTE**

you can update yarn path from config file.

Run Artisan Command
-------------------

[](#run-artisan-command)

you can direct run artisan command by using this method

```
use Queents\ConsoleHelpers\Traits\RunCommand;

class MyCommand extends Command{
    use RunCommand;
}
```

```
$this->artisanCommand('migrate');
```

### Handle Stubs File Template

[](#handle-stubs-file-template)

you can handle stubs file template and copy change or add new data by using this method

```
use Queents\ConsoleHelpers\Traits\HandleStubs;

class MyCommand extends Command{
    use HandleStubs;
}
```

```
$this->generateStubs(
    __DIR__ . "/stubs/SettingsClass.stub",
    "Modules/Base/Settings/MainSettings.php",
    [
        "settingName" => "site_url",
        "moduleName" => "Base",
        "settingField" => Str::lower("site_url")
    ],
    [
        "Modules/Base/Settings/"
    ]
);
```

### Handel Modules Actions

[](#handel-modules-actions)

this command is working with [laravel-modules](https://nwidart.com/laravel-modules/v6/introduction) you can active all modules or stop all modules or active selected module by this methods

```
use Queents\ConsoleHelpers\Traits\HandleModules;

class MyCommand extends Command{
    use HandleModules;
}
```

```
$this->activeAllModules();
```

```
$this->stopAllModules();
```

this method take 2 parameter first is module name and second is active/stop bool by default is true

```
$this->activeModule("Base");
```

Support
-------

[](#support)

you can join our discord server to get support [VILT Admin](https://discord.gg/HUNYbgKDdx)

Docs
----

[](#docs)

look to the new docs of v4.00 on my website [Docs](https://vilt.3x1.io/docs/)

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [Queen Tech Solutions](https://github.com/queents)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

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

Total

2

Last Release

1210d ago

Major Versions

v0.0.1 → v1.0.02023-01-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/809bc5f4a4ab60764ebeceed2fd4156b85118e5abe77a66a50977c083f1cc7ca?d=identicon)[queents](/maintainers/queents)

---

Top Contributors

[![fadymondy](https://avatars.githubusercontent.com/u/11937812?v=4)](https://github.com/fadymondy "fadymondy (9 commits)")

---

Tags

consolehelpersartisancommandapplicationline

### Embed Badge

![Health badge](/badges/queents-console-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/queents-console-helpers/health.svg)](https://phpackages.com/packages/queents-console-helpers)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[helhum/typo3-console

A reliable and powerful command line interface for TYPO3 CMS

2939.0M192](/packages/helhum-typo3-console)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[adhocore/cli

Command line interface library for PHP

3501.2M50](/packages/adhocore-cli)[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)

PHPackages © 2026

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