Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Laravel console command that generates a colored Ghostbusters logo
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class CustomColorAsciiLogoDemo extends Command
{
protected $signature = 'demo:ascii-logo';
protected $description = 'Shows how to format an ASCII logo with custom colors';
public function handle()
{
$logo = <<<LOGO
__---__
_- _--<fg=red>______</>
<fg=red>__--</>( / \ )<fg=red>XXXXXXXXXXXXX_</>
<fg=red>--XXX</>( O O )<fg=red>XXXXXXXXXXXXXXX-</>
<fg=red>XXXX</>( U ) <fg=red>XXXXXXX</>
<fg=red>XXXXXX</>( )--_ <fg=red>XXXXXXXXXXX</>
<fg=red>XXXXXX/</> ( O ) <fg=red>XXXXXX</> <fg=red>\XXXXX</>
<fg=red>XXXXX/</> / <fg=red>XXXXXX</> \__ <fg=red>\XXXXX</>----
<fg=red>XXXXXX</>__/ <fg=red>XXXXXX</> \__---- -
---___ <fg=red>XXX</>__/ <fg=red>XXXXXX</> \__ ---
-- --__/ ___/\ <fg=red>XXXXXX</> / ___---=
-_ ___/ <fg=red>XXXXXX</> '--- <fg=red>XXXXXX</>
--/<fg=red>\XXX</> <fg=red>XXXXXX</> /<fg=red>XXXXX</>
<fg=red>\XXXXXXXXX</> \__ /<fg=red>XXXXX/</>
<fg=red>\XXXXXX</> \ _/<fg=red>XXXXX/</>
<fg=red>\XXXXX</>--__/ __-- <fg=red>XXXX/</>
<fg=red>--XXXXXXX</>--------------- <fg=red>XXXXX--</>
<fg=red>\XXXXXXXXXXXXXXXXXXXXXXXX-</>
<fg=red>--XXXXXXXXXXXXXXXXXX-</>
------------------------------------------------
Thank you for visiting <href=https://asciiart.website;fg=blue;options=underscore>https://asciiart.website/</>
This ASCII pic can be found at
<href=https://asciiart.website/index.php?art=movies/ghostbusters;fg=blue;options=underscore>https://asciiart.website/index.php?art=movies/ghostbusters</>
LOGO;
$this->line($logo);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.