exan/phpfuck

1.0.2 2023-07-03 14:30 UTC

This package is auto-updated.

Last update: 2024-10-23 19:50:01 UTC


README

Fuck up your PHP by making it only use ()[]@!,.+^ as characters

For an online converter, see https://landviz.nl/fuck

Install

composer require exan/phpfuck

Usage

use Exan\PhpFuck\Fucker;

require './vendor/autoload.php';

$fucker = new Fucker();

echo $fucker->fuckCode(<<<PHP
    echo "Hello, world!", PHP_EOL;
PHP), PHP_EOL; // roughly 17kb

Reference

Exan\PhpFucker\Fucker::fuckInt(int $num)

Return a fucked version of any int

Exan\PhpFucker\Fucker::fuckString(string $input)

Return a fucked version of any(TM) UTF-8 string

Exan\PhpFucker\Fucker::fuckFunction(string $fn, array $args)

Return a fucked version of a function call, args are not automatically fucked

Exan\PhpFucker\Fucker::fuckCode(string $code)

Return a fucked version of code. Input should not have PHP opening/closing tags

Used characters

  • (
  • )
  • [
  • ]
  • @
  • !
  • ,
  • .
  • +
  • ^