<?php
final class Tentacode
{
public function __construct(
private string $fullName = "Gabriel Pillet",
private string $twitterHandle = "@tentacode",
private string $portfolioUrl = "https://tentacode.dev",
private array $favoriteEmojis = ['🐙', '✨', '🤖', '🤗'],
) {}
public function sayHello(): void
{
$greetingMessage = <<<BONJOUR
Bonjour! {$this->favoriteEmojis[array_rand($this->favoriteEmojis)]}
My name is {$this->fullName}.
Check my portfolio at {$this->portfolioUrl}
Or my twitter profile at https://twitter.com/{$this->twitterHandle}
BONJOUR;
print $greetingMessage . PHP_EOL;
}
}
try {
(new Tentacode)->sayHello();
} catch (\Throwable $e) {
echo "Oops, nobody is perfect I guess…". PHP_EOL . $e->getMessage();
die(42);
}
🐙
tentacoding
Freelance Backend Developer / CTO on demand ✨ @ tentacode.dev #PHP #Symfony #Laravel #Quality #Data #Remote
-
tentacode.dev
- Lyon, France
- https://tentacode.dev
- @tentacode
- in/gabrielpillet
Highlights
- Pro
Pinned Loading
-
mario
mario PublicForked from web-id-fr/mario
🆙 MacOS Ansibles Recipes : Indepotent & Omnipotent (it setups a local environment for devs @ https://web-id.fr)
Jinja 1
-
-
PhatFishes
PhatFishes Public🐡 A party game with puffer fishes, made all by myself under 72 hours.
C# 6
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.