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

String Laravel Package

spatie/string

Fluent string handling for PHP. Wrap strings with string() to get a chainable object with helpers like between(), case conversion, concatenation, and array-offset access for reading/updating characters. Lightweight utility by Spatie, installable via Composer.

View on GitHub
Deep Wiki
Context7
3.0.1

What's Changed

Full Changelog: https://github.com/spatie/string/compare/3.0.0...3.0.1

3.0.0
  • Require PHP 8+
  • Drop support for all PHP 7.x versions
  • Use PHP 8 syntax where possible
  • Remove "Exception" suffix from exception classnames
2.2.3
  • add support for PHP 8
2.2.2
  • fix possesive output of it
2.2.1
  • fix error when using possesive on an empty string
2.2.0
  • add replaceFirst
2.0.1

Bugfix

  • Strings now have a more strict validation on instantiation. Trying to create a string from an array or an object that doesn't implement __toString now throws an exception.
2.1.0

Added

  • Contains function (alias for find)
2.0.0

Added

  • PHP 7 compatibility

Removed

  • PHP 5.4 support
1.9.1

Changed

  • Removed replace function & test (already provided by Underscore)
1.9.0

Added

  • Add replace function
1.8.2

Bugfix

  • Fixed ArrayAccess offset test
1.8.1

Bugfix

  • Fixed underscore methods that use the string as a parameter
1.8.0

Added

  • pop method
1.7.0

Added

  • segment methods
  • trim method
  • documentation improvements
1.6.0

Added

  • possessive method
1.5.0

Added

  • allow string manipulation via array offset
1.4.0

Added

  • integration with underscore
1.3.0

Added

  • prefix, suffix and concat methods
1.2.0

Added

  • replaceLast method
1.1.0

Added

  • tease method
1.0.0

Added

  • Everything, initial release
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.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
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