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 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
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: 1 package by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

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 celso.nery@gmail.com 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

  Files folder image Files (24)  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files (24)  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file initials.yml Data Auxiliary data

  Files folder image Files (24)  /  reports  
File Role Description
Files folder image_css (4 files)
Files folder image_icons (2 files)
Files folder image_js (5 files)
  Accessible without login HTML file dashboard.html Doc. Documentation
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login HTML file Initials.php.html Doc. Documentation

  Files folder image Files (24)  /  reports  /  _css  
File Role Description
  Accessible without login Plain text file bootstrap.min.css Data Auxiliary data
  Accessible without login Plain text file nv.d3.min.css Data Auxiliary data
  Accessible without login Plain text file octicons.css Data Auxiliary data
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files (24)  /  reports  /  _icons  
File Role Description
  Accessible without login Plain text file file-code.svg Data Auxiliary data
  Accessible without login Plain text file file-directory.svg Data Auxiliary data

  Files folder image Files (24)  /  reports  /  _js  
File Role Description
  Accessible without login Plain text file bootstrap.bundle.min.js Data Auxiliary data
  Accessible without login Plain text file d3.min.js Data Auxiliary data
  Accessible without login Plain text file file.js Data Auxiliary data
  Accessible without login Plain text file jquery.min.js Data Auxiliary data
  Accessible without login Plain text file nv.d3.min.js Data Auxiliary data

  Files folder image Files (24)  /  src  
File Role Description
Files folder imageServices (1 directory)

  Files folder image Files (24)  /  src  /  Services  
File Role Description
Files folder imageTraits (1 file)

  Files folder image Files (24)  /  src  /  Services  /  Traits  
File Role Description
  Plain text file Initials.php Class Class source

  Files folder image Files (24)  /  tests  
File Role Description
Files folder imageUnit (1 file)

  Files folder image Files (24)  /  tests  /  Unit  
File Role Description
  Plain text file InitialsTest.php Class Class source

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  
 100%
Total:0
This week:0