PHPackages                             wilderborn/partyline - 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. wilderborn/partyline

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

wilderborn/partyline
====================

A Laravel 5 package to output to the console from outside of command classes

1.0.2(3y ago)1934.3M—2.2%12[1 issues](https://github.com/wilderborn/partyline/issues)7MITPHP

Since Jun 1Pushed 3y ago4 watchersCompare

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

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

Partyline
=========

[](#partyline)

This package allows you to output to the console from outside of command class.

For example, you might have a feature that does the same thing from a command and through the web. Until now, you may have found yourself duplicating code just to be able to output to the console in various places.

With Partyline, you can use output commands within your logic. If it's being run inside the console, you'll see it. Otherwise, nothing will happen.

Usage
-----

[](#usage)

In your console command's `handle` method, bind the command into Partyline using the facade:

```
public function handle()
{
    \Partyline::bind($this);
}
```

Then in your regular classes, you may call any public `Illuminate\Console\Command` methods on the `Partyline` facade, just like you would inside the command class.

```
\Partyline::info('foo');
// Equivalent to $this->info('foo') within your command.
```

### Facade usage

[](#facade-usage)

You can either use the globally aliased facade with a slash:

```
\Partyline::method();
```

Or, you can import the facade:

```
use Wilderborn\Partyline\Facade as Partyline;

Partyline::method();
```

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

[](#installation)

This package can be installed through Composer.

```
composer require wilderborn/partyline

```

For Laravel 5.4 and below, register the service provider and facade:

```
// config/app.php
'providers' => [
    ...
    Wilderborn\Partyline\ServiceProvider::class,
    ...
],

'aliases' => [
    ...
    'Partyline' => Wilderborn\Partyline\Facade::class,
    ...
]
```

For Laravel 5.5+, this package will be [automatically discovered](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518).

Tips
----

[](#tips)

If you have many commands classes, you may find it tedious to bind into Partyline every time. You may consider an abstract command class and bind inside the `run` method.

```
class YourCommand extends AbstractCommand
{
    public function handle()
    {
        //
    }
}
```

```
class AbstractCommand extends Command
{
    /**
     * Run the console command.
     *
     * @param  \Symfony\Component\Console\Input\InputInterface  $input
     * @param  \Symfony\Component\Console\Output\OutputInterface  $output
     * @return int
     */
    public function run(InputInterface $input, OutputInterface $output)
    {
        \Partyline::bind($this);

        return parent::run($input, $output);
    }
}
```

More info on our Statamic blog:

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity60

Solid adoption and visibility

Community28

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 69.2% 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 ~1011 days

Total

3

Last Release

1251d ago

### Community

Maintainers

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

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

![](https://avatars.githubusercontent.com/u/1669353?v=4)[Statamic](/maintainers/statamic)[@statamic](https://github.com/statamic)

---

Top Contributors

[![jasonvarga](https://avatars.githubusercontent.com/u/105211?v=4)](https://github.com/jasonvarga "jasonvarga (9 commits)")[![jackmcdade](https://avatars.githubusercontent.com/u/44739?v=4)](https://github.com/jackmcdade "jackmcdade (2 commits)")[![johdougss](https://avatars.githubusercontent.com/u/1482660?v=4)](https://github.com/johdougss "johdougss (1 commits)")[![roberto910907](https://avatars.githubusercontent.com/u/12180771?v=4)](https://github.com/roberto910907 "roberto910907 (1 commits)")

---

Tags

command-line-toolconsolelaravellaravel-5-packagestatamictooling

### Embed Badge

![Health badge](/badges/wilderborn-partyline/health.svg)

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

###  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.8M19](/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)
