lasserafn/php-initials
Framework-agnostic PHP library to generate name initials (UTF-8 safe, including emojis). Supports constructor or fluent API to set name and initials length, generate initials, and get URL-friendly initials. Ideal for avatars, labels, and user badges.
You can now use $initials->keepCase()->generate() to prevent uppercasing the name.
Can now generate initials that does not contain special-characters. For example:
Lasse Øster will return LØ.
However if we use the new method: getUrlfriendlyInitials(), the output will be: LO.
How can I help you explore Laravel packages today?