File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ also you can use them as utilities class.
10
10
11
11
## Requirements
12
12
13
- - PHP 8 or higher
13
+ - PHP 8.1 or higher
14
14
15
15
## Installation
16
16
@@ -26,7 +26,7 @@ you can use String helper methods as static so usage like the following:
26
26
First Using The StrUtility Class:
27
27
28
28
``` php
29
- use PhpStringHelpers\Facade\StrUtility;
29
+ use dvlpr1996\ PhpStringHelpers\Facade\StrUtility;
30
30
```
31
31
32
32
<br >
@@ -379,6 +379,38 @@ StrUtility::before(string $string, string $search): string
379
379
StrUtility::hasSpace(string $string): bool
380
380
```
381
381
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
+
382
414
## StrUtility usage as helper functions
383
415
384
416
String helper functions are global so usage like the following:
You can’t perform that action at this time.
0 commit comments