PHP code example of wilderborn / partyline

1. Go to this page and download the library: Download wilderborn/partyline library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wilderborn / partyline example snippets


\Partyline::method();

use Wilderborn\Partyline\Facade as Partyline;

Partyline::method();
 php
public function handle()
{
    \Partyline::bind($this);
}
 php
\Partyline::info('foo');
// Equivalent to $this->info('foo') within your command.
 php
// config/app.php
'providers' => [
    ...
    Wilderborn\Partyline\ServiceProvider::class,
    ...
],

'aliases' => [
    ...
    'Partyline' => Wilderborn\Partyline\Facade::class,
    ...
]
 php
class YourCommand extends AbstractCommand
{
    public function handle()
    {
        //
    }
}
 php
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);
    }
}