Skip to content

Commit 4d61889

Browse files
committed
update README.md
1 parent 33cfeeb commit 4d61889

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ also you can use them as utilities class.
1010

1111
## Requirements
1212

13-
- PHP 8 or higher
13+
- PHP 8.1 or higher
1414

1515
## Installation
1616

@@ -26,7 +26,7 @@ you can use String helper methods as static so usage like the following:
2626
First Using The StrUtility Class:
2727

2828
```php
29-
use PhpStringHelpers\Facade\StrUtility;
29+
use dvlpr1996\PhpStringHelpers\Facade\StrUtility;
3030
```
3131

3232
<br>
@@ -379,6 +379,38 @@ StrUtility::before(string $string, string $search): string
379379
StrUtility::hasSpace(string $string): bool
380380
```
381381

382+
```php
383+
StrUtility::isEmail(string $email): bool
384+
```
385+
386+
```php
387+
StrUtility::detectCase(string $word): string
388+
```
389+
390+
```php
391+
StrUtility::isLowerCase(string $word): bool
392+
```
393+
394+
```php
395+
StrUtility::isUpperCase(string $word): bool
396+
```
397+
398+
```php
399+
StrUtility::isTitleCase(string $word): bool
400+
```
401+
402+
```php
403+
StrUtility::isSnakeCase(string $word): bool
404+
```
405+
406+
```php
407+
StrUtility::validateUserName(string $userName, int $min = 3, int $max = 20): bool
408+
```
409+
410+
```php
411+
StrUtility::humanFileSize(int $size, string $type = 'KB'): string
412+
```
413+
382414
## StrUtility usage as helper functions
383415

384416
String helper functions are global so usage like the following:

0 commit comments

Comments
 (0)