Releases: vendeka-nl/text
Releases · vendeka-nl/text
2.0.0
Version 2 is a rewrite of the first version and extends Laravel's string helper (Illuminate\Support\Str
). This package can be used without Laravel, as well!
Upgrading from v1.x
Version 2.x requires PHP 7.4 or higher.
Next, update the package version of vendeka-nl/text
to "^2" in your composer.json and run composer update vendeka-nl/text
to update the package.
After updating the package, change your calls using the table below.
Replace all other references to Vendeka\Text\Text
with Illuminate\Support\Str
.
v1 | v2 |
---|---|
Vendeka\Text\Fluid |
Illuminate\Support\Str::of() |
Vendeka\Text\Text::changeCase() |
Illuminate\Support\Str::lower() Illuminate\Support\Str::upper() Illuminate\Support\Str::ucfirst() Illuminate\Support\Str::title() |
Vendeka\Text\Text::firstToUpperCase() |
Illuminate\Support\Str::ucfirst() |
Vendeka\Text\Text::startsWith() |
Illuminate\Support\Str::startsWith() |
Vendeka\Text\Text::toLowerCase() |
Illuminate\Support\Str::lower() |
Vendeka\Text\Text::toTitleCase() |
Illuminate\Support\Str::title() |
Vendeka\Text\Text::toUpperCase() |
Illuminate\Support\Str::upper() |