2017 © Pedro Peláez
 

library display-name

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.

image

ericmakesstuff/display-name

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.

  • Monday, May 18, 2015
  • by eblount
  • Repository
  • 1 Watchers
  • 3 Stars
  • 470 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 37 % Grown

The README.md

DisplayName

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

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., (*2)

Install

Via Composer, (*3)

``` bash $ composer require ericmakesstuff/display-name, (*4)


## Usage ``` php $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, (*5)

'EricMakesStuff\DisplayName\DisplayNameServiceProvider',

Include the Facade in config/app.php, (*6)

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

Use the facade, (*7)

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

Change log

Please see CHANGELOG for more information what has changed recently., (*8)

Testing

bash $ composer test, (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security related issues, please email eric at ericmakesstuff dot com instead of using the issue tracker., (*11)

Credits

License

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

The Versions

18/05 2015

dev-master

9999999-dev https://github.com/ericmakesstuff/display-name

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

initials ericmakesstuff displayname

18/05 2015

1.0.1

1.0.1.0 https://github.com/ericmakesstuff/display-name

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

initials ericmakesstuff displayname

18/05 2015

1.0.0

1.0.0.0 https://github.com/ericmakesstuff/display-name

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

initials ericmakesstuff displayname