Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Strings Laravel Package

yiisoft/strings

Yii Strings provides fast, multibyte-safe string utilities for PHP: StringHelper and NumericHelper, Inflector (pluralize, slug), wildcard pattern matching, and optimized combined regex matching with optional memoization.

View on GitHub
Deep Wiki
Context7
2.7.0
  • New #148, #149: Add NumericHelper::convertHumanReadableSizeToBytes() method (@mspirkov)
  • New #3: Add StringHelper::truncateWordsByLength() method to truncate text by character length while preserving word boundaries (@samdark)
  • Enh #150: Add PHP 8.5 support (@vjik)
  • Bug #119: Fix incorrect pluralization of words ending in "tion", "sion" and "gion" (@samdark)

Full changelog

2.6.0
  • Chg #140: Bump minimal required PHP version to 8.1 and minor refactoring (@vjik)
  • Chg #143: Change PHP constraint in composer.json to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 (@vjik)
  • Bug #138: Explicitly mark nullable parameters (@ferrumfist)
  • Bug #141: StringHelper::parsePath() for empty string returns path [''] instead of [] before (@vjik)
  • Bug #142: Check string on a valid UTF-8 in StringHelper methods: trim(), ltrim() and rtrim() (@vjik)
2.5.0
  • New #137: Add StringHelper::matchAnyRegex() method as a facade for CombinedRegexp (@vjik)
  • Enh #128: Add more specific psalm type for result of StringHelper::base64UrlEncode() method (@vjik)
2.4.0
  • New #118: Add findBetween(), findBetweenFirst() and findBetweenLast() methods to StringHelper to retrieve a substring that lies between two strings (@salehhashemi1992)
  • Enh #121: Don't use regexp if there is no delimeter in the path in StringHelper::parsePath() (@viktorprogger)
2.3.1
  • Enh #117: WildcardPatters uses memoization and accelerates ~2 times on repeated calls (@viktorprogger)
2.3.0
  • Enh #114: Add stringable object support to NumericHelper::normalize() (@vjik)
2.2.0
  • New #102, #106: Add CombinedRegexp class (@xepozz, @vjik)
  • New #103: Add MemoizedCombinedRegexp decorator that caches results of CombinedRegexp (@xepozz)
  • New #104: Add methods StringHelper::trim(), StringHelper::ltrim(), StringHelper::rtrim() (@olegbaturin)
  • Enh #103: Raise required PHP version to ^8.0 (@xepozz)
  • Enh #106: Using fully-qualified function calls to improve performance (@vjik)
  • Enh #111: Minor refactoring (@Tigrov)
  • Enh #83: Make minor refactoring with Rector help (@vjik)
  • Enh #92: Add $strict parameter to Inflector::toSnakeCase() method (@arogachev)
2.1.2
  • Bug #105: Fix incorrect split UTF-8 strings in StringHelper::split() method (@vjik)
2.1.1
  • Enh #85: Improve StringHelper::parsePath() method annotation (@vjik)
2.1.0
  • New #75: Add method Inflector::toSnakeCase() that convert word to "snake_case" (@soodssr)
  • New #81: Add StringHelper::parsePath() method (@arogachev, @vjik)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope