PHP code example of klaude / foaas

1. Go to this page and download the library: Download klaude/foaas 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/ */

    

klaude / foaas example snippets


$fuck = new Foaas\Foaas;

// "Fuck off, Joker. - Batman"
echo $fuck->off('Joker', 'Batman');

// "Fucking fuck off, Esienhower. - Kruschev"
echo $fuck->ing('Esienhower', 'Kruschev');

// "Fuck you, Harpo. - Groucho"
echo $fuck->you('Harpo', 'Groucho');

// "Fuck that. - Moses"
echo $fuck->that('Moses');

// "Fuck this. - Jesus H. Christ"
echo $fuck->this('Jesus H. Christ');

// "Fuck everything. - John F. Kennedy"
echo $fuck->everything('John F. Kennedy');

// "Everyone can go and fuck off. - Bumblebee"
echo $fuck->everyone('Bumblebee');

// "Wolverine, Thou clay-brained guts, thou knotty-pated fool, thou whoreson
// obscene greasy tallow-catch! - Professor X"
echo $fuck->shakespeare('Wolverine', 'Professor X');

// "Lucy, there aren't enough swear-words in the English language, so now I'll
// have to call you perkeleen vittupää just to express my disgust and
// frustration with this crap. - Charlie Brown"
echo $fuck->linus('Lucy', 'Charlie Brown');

// "Oh fuck off, just really fuck off you total dickface. Christ Lucy, you are
// fucking thick. - Ricki"
echo $fuck->king('Lucy', 'Ricki');

// "Well fuck me pink. - Simba"
echo $fuck->pink('Simba');

// "Fuck my life. - Gandhi"
echo $fuck->life('Gandhi');

// This is Fucking Awesome. - 2Pac
echo $fuck->awesome('2Pac');

// Come the fuck in or fuck the fuck off. - Kim Kardashian
echo $fuck->tucker('Kim Kardashian');

// Please choke on a bucket of cocks. - Pope Francis
echo $fuck->bucket('Pope Francis');

// "Fuck clowns." Seriously. Clowns are creepy.
// This example only uses the FOAAS message response, not the subtitle.
echo $fuck->clowns('me')->message;

// "FUCK OFF, JOKER. - BATMAN"
echo $fuck->shout()->off('Joker', 'Batman');

// All swearing should be in German.
//
// "Bitte ersticken Sie an einem Eimer mit Schwänzen.   - Papst Franziskus"
echo $fuck->in('de')->bucket('Pope Francis');

// Google translates this back as "Fucking especially this paper clip. - Captain America". Cool.
//
// 他妈的特别是这个纸夹。   - 美国队长
echo $fuck->in('zh')->particular('paper clip', 'Captain America');

// ТРАХНИ ТЕБЯ ОЧЕНЬ СИЛЬНО.   - БЕРНИ САНДЕРС
echo $fuck->shout()->in('ru')->thanks('Bernie Sanders');