PHPackages                             corex/lconsole - 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. corex/lconsole

AbandonedLibrary

corex/lconsole
==============

Laravel Console (artisan, commands, visibility)

1.0.1(8y ago)023MITPHPPHP &gt;=5.6.4

Since Jun 22Pushed 8y agoCompare

[ Source](https://github.com/corex/lconsole)[ Packagist](https://packagist.org/packages/corex/lconsole)[ RSS](/packages/corex-lconsole/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

CoRex Laravel Console
=====================

[](#corex-laravel-console)

Laravel Console (artisan, commands, visibility).

***Versioning for this package follows . Backwards compatibility might break on upgrade to major versions.***

For bigger Laravel installations, the list of artisan commands can be quite long. This package enables you to have your own artisan with commands of your choice.

**Warning: existing laravel commands such as route:list is only hidden. If you add a command with same signature as an existing command, it will override existing command. If this happens, you cannot use i.e. $this-&gt;call() to call the overridden Laravel Command.**

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

[](#installation)

Run `"composer require corex/lconsole"`.

Now you have 2 options.

#### Option 1

[](#option-1)

Register the provider and make commands available in Laravel artisan.

Add following code to AppServiceProviders@register method.

```
if ($this->app->environment() == 'local') {
    $this->app->register(\CoRex\Laravel\Console\ConsoleServiceProvider::class);
}
```

#### Option 2

[](#option-2)

Copy the file "artisan" in package to root of Laravel installation and rename it.

#### Setup artisan

[](#setup-artisan)

Finally modify the created artisan file to suit your needs.

Example of a new artisan.

```
require_once(__DIR__ . '/vendor/autoload.php');

$artisan = new \CoRex\Laravel\Console\Artisan(__DIR__);

// Set name on artisan.
//$artisan->setName('name');

// Set version on artisan.
//$artisan->setVersion('x.y.z');

// Add single command.
//$artisan->addCommand(MyCommand::class);

// Add multiple commands on specified path.
//$artisan->addCommandsOnPath(path-to-commands, true, '');

$artisan->execute();
```

It is good practice to end all of your commands with the word "Command" i.e. "MyCommand". This way you can have only your commands added on "$artisan-&gt;addCommandsOnPath()" and not all other classes i.e. helpers.

Example of a modified artisan.

```
require_once(__DIR__ . '/vendor/autoload.php');

$artisan = new \CoRex\Laravel\Console\Artisan(__DIR__);

// Set name on artisan.
$artisan->setName('Test');

// Set version on artisan.
$artisan->setVersion('1.0.0');

// Add single command.
//$artisan->addCommand(MyCommand::class);

// Add multiple commands on specified path.
$artisan->addCommandsOnPath(__DIR__ . '/app/Console/Commands, true, '');

$artisan->execute();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

3243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2168107cb28f49e937f963a925553ebac5923aa27cad2e1cf90ddbcabf663d6d?d=identicon)[corex](/maintainers/corex)

---

Top Contributors

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

---

Tags

laravelartisancommand

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/corex-lconsole/health.svg)

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

###  Alternatives

[larapack/command-validation

Enable a method for Artisan Commands to validate the output of methods like `ask`.

133.8k](/packages/larapack-command-validation)

PHPackages © 2026

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