Weave 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

spatie/string is a PHP package for fluent, chainable string handling. Wrap any native string with the string() helper, then chain methods like between, toUpper, and toLower, or use array-style offsets to read and modify individual characters easily.

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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource