PHP Classes

How Can PHP Get the Initial Letters of Words of a Personal Name Using the Trait Initials: Get the initial letters of a name

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-12-20 (8 days ago) RSS 2.0 feedNot enough user ratingsTotal: 11 This week: 11All time: 11,470 This week: 5Up
Version License PHP version Categories
initials 1.0Custom (specified...5Algorithms, Text processing, PHP 7
Description 

Author

This package can get the initial letters of a name.

It provides a trait with functions that can return the initial letter of a name that may have a first name and last name.

Currently, the trait provides functions to:

- Return an array with initial letters given the first name and last name strings

- Return the initial letter of a name given the name string

- Return a string with two letters that are the initial letters given the first name and last name strings

Picture of Celso
Name: Celso <contact>
Classes: 3 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 2x

 

Documentation

Utility for return Initials of Names in PHP - by Celso Nery

A package utility to work with Initials Names, for show in front if the user do not have a picture.

Maintainer PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

Installation

This package available by Composer:

"celsonery/initials": "^1.0"

or run

composer require celsonery/initials

How to use

In your class import this trait

use CelsoNery\EanUtils\Services\Traits\Initials;

class YourClassName
{
    use Initials;
    
    public function yourMethod()
    {
        $initials = $this->getInitials("User Name"));
    }
}

Contributing

Please see CONTRIBUTING for details.

Support

Security: If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Thank you

Credits

License

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


  Files folder image Files (24)  
File Role Description
Files folder image.github (1 directory)
Files folder imagereports (3 files, 3 directories)
Files folder imagesrc (1 directory)
Files folder imagetests (1 directory)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:11
This week:11
All time:11,470
This week:5Up