Created
February 10, 2020 23:43
-
-
Save breadthe/c1bc6fff18f21605fbf11726956d43e9 to your computer and use it in GitHub Desktop.
A Laravel console command that generates a colored Ghostbusters logo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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