Releases: dvlpr1996/php-string-helpers
Releases · dvlpr1996/php-string-helpers
Release v3.0.0
Release version 3.0.0 (2024-05-06)
Added
Add new methods
StrUtility::isEmail(string $email): bool
StrUtility::detectCase(string $word): string
StrUtility::isLowerCase(string $word): bool
StrUtility::isUpperCase(string $word): bool
StrUtility::isTitleCase(string $word): bool
StrUtility::isSnakeCase(string $word): bool
StrUtility::validateUserName(string $userName, int $min = 3, int $max = 20): bool
StrUtility::humanFileSize(int $size, string $type = 'KB'): string
Changed
Updated composer.json schema for namespaces to improve package organization.
Deprecated
None
Removed
None
Fixed
None
Security
None
release version 2.0.1
Fix StrUtility::translate() method bug
release version 2.0.0
Change the implementation of package structure now user can use this library in 3 different ways
- StrUtility usage as object
- StrUtility usage as helper functions
- StrUtility usage as static methods
Add new methods :
- StrUtility::is_ipv4(string $ip): bool
- StrUtility::is_ipv6(string $ip): bool
- StrUtility::after(string $string, string $search): string
- StrUtility::before(string $string, string $search): string
v1.0.0
fix bugs
initial release
initial release