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

Abandoned → [symfony/console](/?search=symfony%2Fconsole)Library[CLI &amp; Console](/categories/cli)

corex/console
=============

Console framework (artisan, commands, visibility, recursive)

1.0.2(8y ago)042MITPHPPHP &gt;=7.0

Since Mar 28Pushed 7y agoCompare

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

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

CoRex Console
=============

[](#corex-console)

Console framework based on illuminate/console (artisan, commands, visibility).

[![License](https://camo.githubusercontent.com/e3c31463f85ab799ddef8d491706740ec1e892a7e568d6ad8f7619a0ebeb5766/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f7265782f636f6e736f6c652e737667)](https://camo.githubusercontent.com/e3c31463f85ab799ddef8d491706740ec1e892a7e568d6ad8f7619a0ebeb5766/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f7265782f636f6e736f6c652e737667)[![Build Status](https://camo.githubusercontent.com/a81f3fa05dd06e4900ba3b18a52aa469c75bb00efe259c2a55c68d96202628cb/68747470733a2f2f7472617669732d63692e6f72672f636f7265782f636f6e736f6c652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/a81f3fa05dd06e4900ba3b18a52aa469c75bb00efe259c2a55c68d96202628cb/68747470733a2f2f7472617669732d63692e6f72672f636f7265782f636f6e736f6c652e7376673f6272616e63683d6d6173746572)[![codecov](https://camo.githubusercontent.com/b99be6d5c741da6dda1de100a2b89f95648986204e728dbddf98241b001a78c2/68747470733a2f2f636f6465636f762e696f2f67682f636f7265782f636f6e736f6c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://camo.githubusercontent.com/b99be6d5c741da6dda1de100a2b89f95648986204e728dbddf98241b001a78c2/68747470733a2f2f636f6465636f762e696f2f67682f636f7265782f636f6e736f6c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)

Laravel has a package called illuminate/console which makes an excellent job of serving commands.

Package corex/console makes it possible to have commands outside Laravel + a little more.

- Support for Commands using Laravel's implementation of commands.
- Support for Commands using Symfony's implementation of commands.

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

[](#installation)

- Run "composer require corex/console".

Commands (internal).
--------------------

[](#commands-internal)

- make:artisan - This command creates a new "artisan" in project root (created artisan can be modified to suit your needs).
- make:command - This command creates a new command in current directory.

A note on "artisan" file.

- It is possible to specify array of parameters or signature, on "$artisan-&gt;execute()" so it will execute command instead of showing list of commands.
- It is possible to override the property $hidden on commands on adding indidual command or scan for commands.

Command
-------

[](#command)

Go to Laravel's documentation to read how to write commands.

Every command created must end in "Command.php" i.e. "MyCommand.php". Otherwise it will not be added to list of available commands. It is possible to change that in Artisan setup.

When using "make:command" the created command will extend CoRex\\Console\\BaseCommand which extends Illuminate\\Console\\Command.

Following methods exists on BaseCommand.

- write() - Outputs text to console with no linebreak.
- writeln() - Outputs text to console with linebreak.
- header() - Outputs a header followed by a separator.
- separator() - Outputs a separator.
- words() - Outputs array of words separated (implode()).
- properties() - Outputs associative array key/value line by line.
- setLineLength() - This sets length of line i.e. used in separators.
- setLineLengthFull() - This sets length of line to i.e. used in separators to length of terminal.
- getLineLength() - Gets the length of i.e. separators.
- throwError() - Throw styled exception (white on red).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

2954d 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 (26 commits)")

---

Tags

consolecommand

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminated/console-mutex

Mutex for Laravel Console Commands.

146938.2k1](/packages/illuminated-console-mutex)

PHPackages © 2026

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