klaude/foaas 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

klaude/foaas

Composer 安装命令:

composer require klaude/foaas

包简介

A Fuck Off As A Service client.

关键字:

README 文档

README

Build Status Latest Stable Version Latest Unstable Version Scrutinizer Code Quality Code Coverage SensioLabsInsight

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 (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

Use Composer!

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

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

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 or RFC 3066 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');

klaude/foaas 适用场景与选型建议

klaude/foaas 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 87 次下载、GitHub Stars 达 33, 最近一次更新时间为 2013 年 07 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「foaas」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 klaude/foaas 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 klaude/foaas 我们能提供哪些服务?
定制开发 / 二次开发

基于 klaude/foaas 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 87
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 33
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 33
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-26