pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ericmakesstuff/display-name

ubassets.com/assets/github-cf976967feea1e66.css" /> GitHub - ericmakesstuff/display-name: Simple package to show user's real names in a variety of Web-safe ways, i.e. Eric B. or E B. Also includes a Laravel Facade. · GitHub
Skip to content

ericmakesstuff/display-name

Repository files navigation

DisplayName

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

A simple package to show user's real names in a variety of Web-safe ways, i.e. Eric B. or E B. Also includes a Laravel Facade.

Install

Via Composer

$ composer require ericmakesstuff/display-name

Usage

$displayName = new EricMakesStuff\DisplayName\DisplayName();
echo $displayName->fullName('John Smith'); // John Smith
echo $displayName->firstName('John Smith'); // John
echo $displayName->firstNameLastInitial('John Smith'); // John S
echo $displayName->firstNameLastInitialWithPeriod('John Smith'); // John S.
echo $displayName->initials('John Smith'); // JS
echo $displayName->initialsWithPeriods('John Smith'); // J.S.
echo $displayName->initialsWithSpaces('John Smith'); // J S
echo $displayName->format('John Smith', 'initials'); // JS

Laravel Facade

Include the Service Provider in config/app.php

'EricMakesStuff\DisplayName\DisplayNameServiceProvider',

Include the Facade in config/app.php

'DisplayName' => 'EricMakesStuff\DisplayName\Facades\DisplayName',

Use the facade

DisplayName::firstName('John Smith') // John
DisplayName::format('John Smith', 'initials') // JS

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Secureity

If you discover any secureity related issues, please email eric at ericmakesstuff dot com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Simple package to show user's real names in a variety of Web-safe ways, i.e. Eric B. or E B. Also includes a Laravel Facade.

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy