PackageTrack
Sign in Get early access

tamtamchik/namecase

This package allows you to convert names into the correct case where possible.

3.1.0 637K downloads/mo #3827 most downloaded on Packagist tamtamchik/namecase

What this package is like to depend on

Last release 1 months ago

05 Jul 2026

Release timing varies

gaps range from 2 weeks to 1.9 years

Nearly every release is documented

notes for 17 of 17 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

20 releases · first in 2016

1 release in the last 12 months

see the full history below

Release timeline

20 releases · Jan 2016 to Jul 2026
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 20
  1. 3.1.0 05 Jul 2026
    Release notes

    Fixed

    • Preserve lowercase HTML entities while name-casing strings (#20).
    • Preserve Ben and Bat as first names, matching Lingua::EN::NameCase.
    • Preserve binti and binte instead of normalizing both to bin.
    • Avoid treating Ed in names such as Ed Oates as a post-nominal.

    Added

    • Post-nominal initials present in Lingua::EN::NameCase.

    Maintenance

    • Add GitHub Actions test coverage for PHP 7.3 through 8.5.
    • Update Scrutinizer to install dependencies with Composer 2.
    • Add monthly Dependabot updates with a 14-day cooldown.
    Open source →
    Release notes

    Fixed

    • Preserve lowercase HTML entities while name-casing strings (#20).
    • Preserve Ben and Bat as first names, matching Lingua::EN::NameCase.
    • Preserve binti and binte instead of normalizing both to bin.
    • Avoid treating Ed in names such as Ed Oates as a post-nominal.

    Added

    • Post-nominal initials present in Lingua::EN::NameCase.
    Open source →
  2. 3.1.0-beta.1 06 Aug 2024 pre-release
    Release notes
    • Updated code for #20.

    Full Changelog: 3.1.0-beta.0...3.1.0-beta.1

    Open source →
  3. 3.1.0-beta.0 23 Jul 2024 pre-release
    Release notes

    Full Changelog: 3.0.0...3.1.0-beta.0

    Open source →
  4. 3.0.0 26 Jan 2023
    Release notes

    Breaking Change! Minimum PHP version is now 7.3.

    Added

    • Name-spaced function str_name_case($name) added with tests.
    Open source →
    Release notes

    Breaking Change! Minimum PHP version is now 7.3.

    Added

    • Namespaced function Tamtamchik\NameCase\str_name_case and tests.
    Open source →
  5. 2.4.1 15 Feb 2022
    Release notes
    • 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

    Open source →
  6. 2.4.0 15 Feb 2022
    Release notes

    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

    Open source →
  7. 2.3.0 20 Feb 2021
    Release notes

    Added

    • Support for lowercase words The, Of, And (#17)
    Open source →
    Release notes

    Added

    • Support for lowercase words The, Of, And (#17)
    Open source →
  8. 2.2.0 15 Jan 2021
    Release notes

    Added

    • PHP 8 support.
    Open source →
    Release notes

    Added

    • PHP 8 support.
    Open source →
  9. 2.1.1 05 Mar 2020
    Release notes

    Fixed

    • Fix missing end word boundary on ten, ter Dutch/Flemish (#9).
    Open source →
    Release notes

    Added

    • Fix missing end word boundary on ten, ter Dutch/Flemish (#9).
    Open source →
  10. 2.1.0 07 Feb 2020
    Release notes

    Added

    • excludePostNominals method to add excluded values (#7).
    Open source →
  11. 2.0.1 07 Feb 2020
    Release notes

    Added

    • MBE post-nominal.
    Open source →
  12. 2.0.0 17 Jul 2019
    Release notes

    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.
    Open source →
  13. 2.0.0-alpha 16 Jul 2019 pre-release

    Nothing published for this version

  14. 1.0.6 05 Mar 2020
    Release notes

    Fixed

    • Fix missing end word boundary on ten, ter Dutch/Flemish (#9).
    Open source →
    Release notes

    Fixed

    • Fix missing end word boundary on ten, ter Dutch/Flemish (#9).
    Open source →
  15. 1.0.5 16 Jul 2019
    Release notes

    Added

    • Dutch: ter/ten (#6) thx, @MagicLegend
    Open source →
  16. 1.0.4 24 May 2019
    Release notes

    Fixed

    • Add ext-mbstring to composer.json
    Open source →
  17. 1.0.3 12 Sep 2018
    Release notes

    Fixed

    • "empty string" warning
    Open source →
  18. 1.0.2 06 Feb 2016
    Release notes

    Added

    • Dutch: den (thx, @nexxai)
    Open source →
  19. 1.0.1 30 Jan 2016
    Release notes

    Added

    • static call
    • instantiation
    • tests
    Open source →
  20. 1.0.0 29 Jan 2016
    Release notes

    Initial release.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive