Leetify your messages! Leetify is a funny tool used to make any msgs like this: 'looks like this' -> '100kz 1ik3 +hiz'
Leetify is a funny tool used to make any msgs like this: "looks like this" -> "100kz 1ik3 +hiz", (*1)
You can use composer scripts to invoke this package - Leetify. Just add it to you composer.json:, (*2)
... "require": { "romanitalian/leetify": "dev-master" } ...
Or after init composer - execute this:, (*3)
composer require romanitalian/leetify, (*4)
<?php use Leet\Leetify; use Leet\LeetifySimple; require_once 'protected/autoload.php'; $out = array(); $str = '133+'; $out['Leetify'][$str] = Leetify::decode($str); $str = 'leet'; $out['Leetify'][$str] = Leetify::encode($str); $str = 'looks like this'; $out['Leetify'][$str] = Leetify::encode($str); $str = 'terry'; $out['Leetify'][$str] = Leetify::encode($str); Leetify::getInstance()->destroy(); $str = '133+'; $out['LeetifySimple'][$str] = LeetifySimple::decode($str, 'latin'); $str = 'leet'; $out['LeetifySimple'][$str] = LeetifySimple::encode($str); $str = 'looks like this'; $out['LeetifySimple'][$str] = LeetifySimple::encode($str); $str = 'terry'; $out['LeetifySimple'][$str] = LeetifySimple::encode($str); $str = '3ะตะท4'; $out['LeetifySimple'][$str] = LeetifySimple::decode($str, 'cyrillic'); $str = 'ะถะตะทะป'; $out['LeetifySimple'][$str] = LeetifySimple::encode($str); $str = 'ยซะัะณะบะธะน leet โ ััะพ ะพัะตะฝั ะฒะตัะตะปะพยป'; $out['LeetifySimple'][$str] = LeetifySimple::encode($str); $str = 'm99k11 l33t โ 3t0 0ch3n v35310.'; $out['LeetifySimple'][$str] = LeetifySimple::decode($str, 'cyrillic'); $str = "ะั4ะบZะน 133+ โ ััะพ ะพ|-|ะตะฝ' ะฒะตัะต4ะพ"; $out['LeetifySimple'][$str] = LeetifySimple::decode($str); $str = 'Shut the fuck up, noob. I owned your ass.'; $out['LeetifySimple'][$str] = LeetifySimple::encode($str); var_dump($out); /* array (size=2) 'Leetify' => array (size=4) '133+' => string 'teet' (length=4) 'leet' => string 'ะะษe-|-' (length=10) 'looks like this' => string '1รo|(z ยฌ3y3|c& +I+Iยกes' (length=25) 'terry' => string '~|~[-|2|`ฮป' (length=11) 'LeetifySimple' => array (size=10) '133+' => string 'leet' (length=4) 'leet' => string '133+' (length=4) 'looks like this' => string '100kz 1ik3 +hiz' (length=15) 'terry' => string '+3rrj' (length=5) '3ะตะท4' => string 'eะตะทA' (length=6) 'ะถะตะทะป' => string 'ะถะตะทะป' (length=8) 'ยซะัะณะบะธะน leet โ ััะพ ะพัะตะฝั ะฒะตัะตะปะพยป' => string 'ยซะัะณะบะธะน 133+ โ ััะพ ะพัะตะฝั ะฒะตัะตะปะพยป' (length=56) 'm99k11 l33t โ 3t0 0ch3n v35310.' => string 'm99kll leet โ etO Ochen ve5elO.' (length=33) 'ะั4ะบZะน 133+ โ ััะพ ะพ|-|ะตะฝ' ะฒะตัะต4ะพ' => string 'ะัAะบSะน leet โ ััะพ ะพ|-|ะตะฝ' ะฒะตัะตAะพ' (length=49) 'Shut the fuck up, noob. I owned your ass.' => string 'Zhu+ +h3 fuck up, n00b. I 0wn3d j0ur 4zz.' (length=41) */