Open Menu

Modifying the theme of your workshop#^ TOP

You can alter the colours, logo and text of your workshop very easily. Look in app/bootstrap.php and you should see the following code.

$app->setLogo($art);
$app->setFgColour('green');
$app->setBgColour('black');

You can modify any of these settings. Available colours are black, red, green, yellow, blue, magenta, cyan, white. setLogo takes a string and can be used display ascii art!

You can set the title of your workshop which will be displayed on the terminal by changing the null argument to Application to a title of your choice. For example:

$app = new Application('My Workshop', __DIR__ . '/config.php');

We will customise the theme a little to be more representative of our subject:

$art = <<<ART
  ∞ ÷ ∑ ×

 PHP SCHOOL
SIMPLE MATH
ART;

$app->setLogo($art);
$app->setFgColour('red');
$app->setBgColour('black');