troupe-tecnologia / accent-string-regex-builder
Simple helper to create a regex from string to match all the results ignoring accents.
1.0.0
2020-02-20 14:51 UTC
Requires
- php: >=7.1.0
Requires (Dev)
- laminas/laminas-coding-standard: ^1.0
- phpunit/phpunit: ^7
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-10-23 18:31:11 UTC
README
Simple helper to create a regex from string to match all the results ignoring accents.
Installation
composer require troupe-tecnologia/accent-string-regex-builder
Usage
use AccentStringRegexBuilder\AccentString; $input = 'A E I O U C'; var_dump(AccentString::toRegex($input)); // Output: '[aáàãâä] [eéèêë] [iíìîï] [oóòõôö] [uúùûü] [cç]'
Contributing
Please see CONTRIBUTING for details.
License
ArrayKeysCaseTransform is released under the MIT License. Please see License File for more information.