Download the PHP package tamtamchik/namecase without Composer
On this page you can find all versions of the php package tamtamchik/namecase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tamtamchik/namecase
More information about tamtamchik/namecase
Files in tamtamchik/namecase
Package namecase
Short Description This package allows you to convert names into the correct case where possible.
License MIT
Homepage https://github.com/tamtamchik/namecase
Informations about the package namecase
NameCase
Forenames and surnames are often stored either entirely in UPPERCASE or lowercase. This package allows you to convert names into the correct case where possible. Although forenames and surnames are typically stored separately if they appear in a single string, whitespace-separated, NameCase deals correctly with them.
Currently, NameCase correctly name-cases names which include any of the following:
It correctly deals with names that contain apostrophes and hyphens, too.
[!NOTE] This README.md is for version 3.x.
If you need a PHP 5 compatible version, please use 1.0.x! README.md
Install
Via Composer
Usage
Options
lazy
– Default:true
. Do not do anything if the string is already mixed case and the lazy option istrue
.irish
– Default:true
. Correct "Mac" exceptions.spanish
– Default:false
. Correctel, la
and Spanish conjunctions.roman
– Default:true
. Correct Roman numbers.hebrew
– Default:true
. Correctben, bat
.postnominal
– Default:true
. Correct post-nominal e.g.PhD
.
Exclude Post-Nominals
Changelog
Please see CHANGELOG for more information on what has changed recently.
Testing & Demo
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Acknowledgements
This library is a port of the Perl library and owes most
of its functionality to the Perl version by Mark Summerfield.
I also used some solutions from Ruby version by Aaron Patterson.
Any bugs in the PHP port are my fault.
Credits
Original PERL Lingua::EN::NameCase
Version:
- Copyright © Mark Summerfield 1998-2014. All Rights Reserved.
- Copyright © Barbie 2014-2019. All Rights Reserved.
Ruby Version:
- Copyright © Aaron Patterson 2006. All Rights Reserved.
PHP Version:
- Yuri Tkachenko
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of namecase with dependencies
ext-mbstring Version *