Skip to content

Releases: vendeka-nl/text

2.0.0

11 Nov 17:38
Compare
Choose a tag to compare

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()

v1.1.0

09 Nov 15:10
Compare
Choose a tag to compare
Forgot to rename a variable.

v1.0.1

18 Jan 11:41
Compare
Choose a tag to compare
Bump version number.

v1.0.0

26 Jun 12:33
Compare
Choose a tag to compare
Documentation updated for method `wrap`.