truegameover/php-keyboard-input-correction

Correction of input from the keyboard. Allows validating & correcting wrong input from the keyboard's layout. E.g. writing something on ru layout when en is active.

Installs: 5 116

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/truegameover/php-keyboard-input-correction

v0.0.4 2020-09-08 14:47 UTC

This package is auto-updated.

Last update: 2025-10-09 02:00:55 UTC


README

Correction of input from the keyboard. Allows validating & correcting wrong input from the keyboard's layout. E.g. writing something on ru layout when en is active.

$corrector = new \KeyboardInputCorrection\KeyboardInputCorrect();

Wrong layout's language - echo $corrector->correct('ghbdtn');// привет

Support only en to ru for now. See tests for more info.

#require PHP >=7.0