PHPackages                             klaude/foaas - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. klaude/foaas

ActiveLibrary

klaude/foaas
============

A Fuck Off As A Service client.

v1.1.0(5y ago)33852MITPHP

Since Sep 6Pushed 5y ago3 watchersCompare

[ Source](https://github.com/klaude/foaas-php)[ Packagist](https://packagist.org/packages/klaude/foaas)[ Docs](https://github.com/klaude/foaas-php)[ RSS](/packages/klaude-foaas/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Call Fuck Off As A Service in PHP
=================================

[](#call-fuck-off-as-a-service-in-php)

[![Build Status](https://camo.githubusercontent.com/575ed44e2dabd2f442910d3e42471dd99b2aa3fe30c232e948e182bf522f7d05/68747470733a2f2f7472617669732d63692e6f72672f6b6c617564652f666f6161732d7068702e706e67)](https://travis-ci.org/klaude/foaas-php)[![Latest Stable Version](https://camo.githubusercontent.com/a7c982a0ee6e6d1aeede3fa3c60dc250840adefe6a3ce5951370d90aa0a206fa/68747470733a2f2f706f7365722e707567782e6f72672f6b6c617564652f666f6161732f762f737461626c65)](https://packagist.org/packages/klaude/foaas)[![Latest Unstable Version](https://camo.githubusercontent.com/32c713c308287c87263f733cec87d357ad85323af27c43dea7c983e10fe5bb7d/68747470733a2f2f706f7365722e707567782e6f72672f6b6c617564652f666f6161732f762f756e737461626c65)](https://packagist.org/packages/klaude/foaas)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f2da499acd385014ca716559be5b44d11a92b3f9b0981643f868fc6de2df531d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6c617564652f666f6161732d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/klaude/foaas-php/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/346f2d764c3e50d3e316be051bd4f26e910b4305039814d9dc1dea2005cd27b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6c617564652f666f6161732d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/klaude/foaas-php/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/ca6833919486fbfbb807b1cf60879c8836b703863ea0893cc3d3d3559a8f854f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36336365336361382d373330632d343733612d386637332d6465633332613762373630322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/63ce3ca8-730c-473a-8f73-dec32a7b7602)

Were you looking to leverage the cloud to tell someone to fuck themselves? Do you need to do it from PHP? Well fuck me! Look no further!

This library automates calls to [FOAAS](https://foaas.herokuapp.com/) (which is probably the best web service ever). I make no claims of ownership of FOAAS or to it's availability. What the fuck do you want from me?

Installation
------------

[](#installation)

Use [Composer](http://getcomposer.org/)!

Run `composer require klaude/foaas` then add `require_once __DIR__ . '/vendor/autoload.php';` (replacing `__DIR__` with wherever your project's root is if you need to) to the beginning of your fucking script, then boom!

Usage
-----

[](#usage)

It's easy as fuck. Just make a `Foaas\Foaas` object and fucking go nuts.

```
$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;
```

You get the idea! There are way more fucks available to give that should auto-complete in your fancypants IDE.

FOAAS responses are kept in a `Foaas\Response` object so you can access FOAAS' message and subtitle directly. Or you can fucking echo the response as a string if that's what floats your fucking boat. What the fuck do I care?

### Options

[](#options)

Call `shout()` on your `Foaas` object to shout it from the goddamn mountain! Shouting resets after the FOAAS call finishes. Heaven knows we don't want to annoy anyone when we're telling them to fuck off.

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

Okay Mr. Worldwide, call `in($language)` on your `Foaas` object with a valid [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) or [RFC 3066](https://www.ietf.org/rfc/rfc3066.txt) language codes to let a motherfucker have it in that language. Just like shouting, the language gets reset after the FOAAS call goes through.

```
// 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');
```

You can combine them too! Hot damn!

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

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~485 days

Total

2

Last Release

1952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee82ebeec5464001f1c8469ef26b140d0feb45af3c62ed0b60b1528d474a8461?d=identicon)[klaude](/maintainers/klaude)

---

Top Contributors

[![klaude](https://avatars.githubusercontent.com/u/45157?v=4)](https://github.com/klaude "klaude (68 commits)")

---

Tags

foaas

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/klaude-foaas/health.svg)

```
[![Health](https://phpackages.com/badges/klaude-foaas/health.svg)](https://phpackages.com/packages/klaude-foaas)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
