Giter Club home page Giter Club logo

leetify's Introduction

Leetify

Leetify is a funny tool used to make any msgs like this: "looks like this" -> "100kz 1ik3 +hiz"

You can use composer scripts to invoke this package - Leetify. Just add it to you composer.json:

    ...
    "require": {
        "romanitalian/leetify": "dev-master"
    }
    ...

Or after init composer - execute this:

composer require romanitalian/leetify

<?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)
*/

leetify's People

Contributors

romanitalian avatar

Stargazers

sinenko avatar Yaroslav Menshikov avatar  avatar Alexander von Hilchen avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.