All notable changes to spatie/string will be documented in this file
- Replace PHP CS Fixer with Laravel Pint by @freekmurze in #38
Full Changelog: https://github.com/spatie/string/compare/3.0.0...3.0.1
- Require PHP 8+
- Drop support for all PHP 7.x versions
- Use PHP 8 syntax where possible
- Remove "Exception" suffix from exception classnames
- add support for PHP 8
- fix possesive output of
it
- fix error when using
possesiveon an empty string
- add
replaceFirst
- Contains function (alias for find)
- Strings now have a more strict validation on instantiation. Trying to create a string from an array or an object that doesn't implement
__toStringnow throws an exception.
- PHP 7 compatibility
- PHP 5.4 support
- Removed replace function & test (already provided by Underscore)
- Add replace function
- Fixed ArrayAccess offset test
- Fixed underscore methods that use the string as a parameter
- pop method
- segment methods
- trim method
- documentation improvements
- possessive method
- allow string manipulation via array offset
- integration with underscore
- prefix, suffix and concat methods
- replaceLast method
- tease method
- Everything, initial release