Skip to content

php-enspired/levenshteinable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Levenshteinable

"It's hard to spell on purpose"

usage example

Are you terrible at spelling? Just type in something close, you're golden!

<?php

use at\levenshteinable\Levenshteinable;

class LevenshteinableDateTime extends DateTime {
  use Levenshteinable;
}

$dt = new LevenshteinableDateTime('now');
echo $dt->fomrat('r');

// outputs something like  "Wed, 26 Jul 2017 03:13:44 +0000"
// GOLDEN

What's that you say?? WHAT ABOUT CLASSES?

<?php

use at\levenshteinable\Levenshteinator;

Levenshteinator::register();

$dt = new DateTiem('now');
echo $dt->fomrat('r');

// outputs something like  "Wed, 26 Jul 2017 03:13:44 +0000"
// GOLDEN

contributing or getting help

I'm on Freenode at #php-enspired, or open an issue on github. Feedback is welcomed as well.