Skip to content

jabarihunt/capitalize-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Name Capitalization Method

Method that correctly capitalizes names. Accounts for prefixes & suffixes, apostrophes, name parts that shouldn't be capitalized, and other scenarios where using something like ucwords(strtolower($str)) doesn't work.

Eventually I'll move this into a formatter class of some sort.

Credit for the original method goes to Armand Niculescu.

About

Method that correctly capitalizes names.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages