Skip to content

Releases: dvlpr1996/php-string-helpers

Release v3.0.0

13 May 07:44
Compare
Choose a tag to compare

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

21 May 21:38
Compare
Choose a tag to compare

Fix StrUtility::translate() method bug

release version 2.0.0

18 Jan 18:03
Compare
Choose a tag to compare

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

18 Dec 10:30
Compare
Choose a tag to compare

Releasing version v1.0.0

  • Add 3 new methods : rmLastWord(), rmFirstWord() and is_slug()
  • Change how to use StrUtility::translate() and StrUtility::filePath()
  • Improve display of errors

fix bugs

05 Dec 02:17
Compare
Choose a tag to compare

fix project root path bug in translate() and filePath()

initial release

23 Nov 21:56
Compare
Choose a tag to compare

initial release