{"repo":"hosmelq/name-of-person","free":true,"listed":false,"github":"https://github.com/hosmelq/name-of-person","clone":"git clone https://github.com/hosmelq/name-of-person.git","description":"Handle person names in your PHP applications with elegant formatting options.","language":"PHP","stars":113,"topics":["laravel","php"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Name of Person Inspired by Basecamp's name of person Ruby gem, but built for modern PHP applications. Introduction Handle person names in your PHP applications with elegant formatting options. Transform names between multiple presentation formats. This package provides a clean, type-safe way to parse, store, manipulate, and display person names consistently across your application. Key Features: - 🎯 Multiple Format Options : nine different ways to display names (full, familiar, abbreviated, initials, sorted, possessive, mentionable) - 🎨 Smart Parsing : Intelligently handles full name strings and edge cases - 🌍 Unicode Support : Full international name support with proper multibyte handling - 🔧 Pure PHP : Core functionality works in any PHP project - ⚡ Laravel Integration : Native Eloquent casting for seamless database integration Requirements This package requires PHP 8.2 or higher. Laravel integration requires Laravel 11 or higher. Installation You can install the package via composer: Basic Usage Creating PersonName Objects The core PersonName class works in any PHP application: Available Methods Basic Properties first (readonly property) Returns the first name as a string. last (readonly property) Returns the last name as a string, or null if no last name was provided. Display Methods abbreviated() Returns the first initial plus full last name: \"F. Last\" familiar() Returns the first name plus last initial with a period: \"First L.\" full() Returns the complete name in \"F","default_branch":null,"files":null,"tree":[],"storefront":"/r/hosmelq","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hosmelq/name-of-person/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}