Skip to content

PHP string tools library for clearance or string comparison ...

License

Notifications You must be signed in to change notification settings

julkwel/php-string-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-string-tools

String tools for php, special chars cleaner and string comparison ... [WIP]

Installation :

$ composer require julkwel/stringtools

Usage :

- String special chars cleaner

$textToClean = "ÉÉÊÊÎÎÎî ëŷ we are with spécïal charactêrs and w'ill clean";
\Julkwel\StringTools\StrCleaner::cleanString($textToClean)

Output: "eeeeiiii ey we are with special characters and will clean"

- String Comparison :

  1. Simple use :
echo \Julkwel\StringTools\StrCompare::isStringIsEquals("test", "test");

Output: true
  1. Special char removal use :
echo \Julkwel\StringTools\StrCompare::isStringIsEquals("têst", "test");

Output: true

Feel free to reach out to me and say hi !.