Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julkwel/php-string-tools
PHP string tools library for clearance or string comparison ...
https://github.com/julkwel/php-string-tools
php php-string php-string-tools string-tools
Last synced: about 2 months ago
JSON representation
PHP string tools library for clearance or string comparison ...
- Host: GitHub
- URL: https://github.com/julkwel/php-string-tools
- Owner: julkwel
- License: mit
- Created: 2022-05-09T14:25:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-09T18:15:03.000Z (over 2 years ago)
- Last Synced: 2024-04-15T11:37:24.079Z (9 months ago)
- Topics: php, php-string, php-string-tools, string-tools
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```2. Special char removal use :
```
echo \Julkwel\StringTools\StrCompare::isStringIsEquals("têst", "test");Output: true
```Feel free to reach out to me and say hi !.