Skip to content
/ phpfuck Public

Transpile your PHP code to only use ()[]@!,.+^

Notifications You must be signed in to change notification settings

Exanlv/phpfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHPFuck

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

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

About

Transpile your PHP code to only use ()[]@!,.+^

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages