All Notable changes to tamtamchik/namecase
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
Breaking Change! Minimum PHP version is now 7.3.
- Namespaced function
Tamtamchik\NameCase\str_name_case
and tests.
- Support for lowercase words The, Of, And (#17)
- PHP 8 support.
- Fix missing end word boundary on
ten
,ter
Dutch/Flemish (#9).
excludePostNominals
method to add excluded values (#7).
MBE
post-nominal.
- Dropped support for
PHP < 7.2
- Dropped support for global function
str_name_case
spanish
option is nowfalse
by default.
-
Post-nominals detection.
-
Constructor now supports
options
parameter. -
Added options:
lazy
– Default: true. Do not do anything if the string is already mixed case and the lazy option istrue
.irish
– Default: true. CorrectMac
.spanish
– Default: false. Correctsel, la
and Spanish conjunctions.roman
– Default: true. Corrects roman numbers.hebrew
– Default: true. Correctsben, bat
.postnominal
– Default: true. Corrects post-nominals.
- New irish
Mac
exceptions.
- Fix missing end word boundary on
ten
,ter
Dutch/Flemish (#9).
- Dutch:
ter/ten
(#6) thx, @MagicLegend
- Add
ext-mbstring
to composer.json
- "empty string" warning
- Dutch:
den
(thx, @nexxai)
- static call
- instantiation
- tests
Initial release.