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.
Package info
github.com/TrueGameover/php-keyboard-input-correction
pkg:composer/truegameover/php-keyboard-input-correction
Requires
- php: >=7.0
- ext-intl: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2026-03-09 02:46:59 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