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 2026Releases
latest 20-
3.1.005 Jul 2026Release notes
Open source →Fixed
- Preserve lowercase HTML entities while name-casing strings (#20).
- Preserve
BenandBatas first names, matchingLingua::EN::NameCase. - Preserve
bintiandbinteinstead of normalizing both tobin. - Avoid treating
Edin names such asEd Oatesas 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.
Release notes
Open source →Fixed
- Preserve lowercase HTML entities while name-casing strings (#20).
- Preserve
BenandBatas first names, matchingLingua::EN::NameCase. - Preserve
bintiandbinteinstead of normalizing both tobin. - Avoid treating
Edin names such asEd Oatesas a post-nominal.
Added
- Post-nominal initials present in
Lingua::EN::NameCase.
-
3.1.0-beta.106 Aug 2024 pre-release -
3.1.0-beta.023 Jul 2024 pre-release -
3.0.026 Jan 2023Release notes
Open source →Breaking Change! Minimum PHP version is now 7.3.
Added
- Name-spaced function
str_name_case($name)added with tests.
Release notes
Open source →Breaking Change! Minimum PHP version is now 7.3.
Added
- Namespaced function
Tamtamchik\NameCase\str_name_caseand tests.
- Name-spaced function
-
2.4.115 Feb 2022Release notes
Open source →- 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
- Replaced 2 post-nominals with more commonly used initials.
-
2.4.015 Feb 2022Release notes
Open source →What's Changed
- Add support for initial names like JJ Abrams and JD Salinger by @jdhartley in #19
New Contributors
- @jdhartley made their first contribution in #19
Full Changelog: 2.3.0...2.4.0
-
2.3.020 Feb 2021 -
2.2.015 Jan 2021 -
2.1.105 Mar 2020 -
2.1.007 Feb 2020 -
2.0.107 Feb 2020 -
2.0.017 Jul 2019Release notes
Open source →Breaking changes
- Dropped support for
PHP < 7.2 - Dropped support for global function
str_name_case spanishoption is nowfalseby default.
Added
-
Post-nominals detection.
-
Constructor now supports
optionsparameter. -
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, laand Spanish conjunctions.roman– Default: true. Corrects roman numbers.hebrew– Default: true. Correctsben, bat.postnominal– Default: true. Corrects post-nominals.
Updated
- New irish
Macexceptions.
- Dropped support for
-
2.0.0-alpha16 Jul 2019 pre-releaseNothing published for this version
-
1.0.605 Mar 2020 -
1.0.516 Jul 2019 -
1.0.424 May 2019 -
1.0.312 Sep 2018 -
1.0.206 Feb 2016 -
1.0.130 Jan 2016 -
1.0.029 Jan 2016