Skip to content

Releases: tamtamchik/namecase

3.0.0

26 Jan 15:09
f963f32
Compare
Choose a tag to compare

Breaking Change! Minimum PHP version is now 7.3.

Added

  • Name-spaced function str_name_case($name) added with tests.

2.4.1

15 Feb 08:37
Compare
Choose a tag to compare
  • Replaced 2 post-nominals with more commonly used initials.
    • MS in favor of Ms
    • LT in favor of Lt

Full Changelog: 2.4.0...2.4.1

2.4.0

15 Feb 08:17
5539342
Compare
Choose a tag to compare

What's Changed

  • Add support for initial names like JJ Abrams and JD Salinger by @jdhartley in #19

New Contributors

Full Changelog: 2.3.0...2.4.0

2.3.0

20 Feb 07:15
Compare
Choose a tag to compare

Added

  • Support for lowercase words The, Of, And (#17)

2.2.0

15 Jan 13:00
Compare
Choose a tag to compare

Added

  • PHP 8 support.

2.1.1

05 Mar 08:51
Compare
Choose a tag to compare

Fixed

  • Fix missing end word boundary on ten, ter Dutch/Flemish (#9).

1.0.6

05 Mar 09:08
Compare
Choose a tag to compare

Fixed

  • Fix missing end word boundary on ten, ter Dutch/Flemish (#9).

2.1.0

07 Feb 12:21
Compare
Choose a tag to compare

Added

  • excludePostNominals method to add excluded values (#7).

2.0.1

07 Feb 11:27
Compare
Choose a tag to compare

Added

  • MBE post-nominal (#8).

2.0.0

17 Jul 12:52
f2be65e
Compare
Choose a tag to compare

Breaking changes

  • Dropped support for PHP < 7.2
  • Dropped support for global function str_name_case
  • spanish option is now false by default.

Added

  • 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 is true.
    • irish – Default: true. Correct Mac.
    • spanish – Default: false. Corrects el, la and Spanish conjunctions.
    • roman – Default: true. Corrects roman numbers.
    • hebrew – Default: true. Corrects ben, bat.
    • postnominal – Default: true. Corrects post-nominals.

Updated

  • New irish Mac exceptions.