PHPackages                             celsonery/initials - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. celsonery/initials

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

celsonery/initials
==================

Package to return initials of names

1.0.1(1y ago)127MITHTMLPHP ^8.1

Since Oct 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/celsonery/initials)[ Packagist](https://packagist.org/packages/celsonery/initials)[ RSS](/packages/celsonery-initials/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

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

[](#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](https://camo.githubusercontent.com/45e1990f156099c483e9b05133871192bcb8358d26633c38d7a989da6a16327c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d4063656c736f6e6572792d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/celsonery)[![PHP from Packagist](https://camo.githubusercontent.com/e948f4820b6594a5a253d4025c78f8c8dde2f0896ee46d0c748f44f749d77d1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f63656c736f6e6572792f696e697469616c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/celsonery/initials)[![Latest Version](https://camo.githubusercontent.com/04134dcf8031ccc39e8f1e7b045bd174918f58f3eaa1af8c8e925f7802149695/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63656c736f6e6572792f696e697469616c732e7376673f7374796c653d666c61742d737175617265)](https://github.com/celsonery/initials/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/d97d233237077e9533382a998df1cbde0d571b50ff820ba5c692cf985b963064/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f63656c736f6e6572792f696e697469616c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/celsonery/initials)[![Quality Score](https://camo.githubusercontent.com/32254e8db9a3db67fa815457ff4ccb837711df2256e919f2ac808586b7cc5d23/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63656c736f6e6572792f696e697469616c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/celsonery/initials)[![Total Downloads](https://camo.githubusercontent.com/eda748a55d8166705e2253e7ba27c4b64cc025f41184362d00f37115957d30a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656c736f6e6572792f696e697469616c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ccelsonery/initials)

Installation
------------

[](#installation)

This package available by Composer:

```
"celsonery/initials": "^1.0"
```

or run

```
composer require celsonery/initials
```

How to use
----------

[](#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
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Support
-------

[](#support)

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

[](#security-if-you-discover-any-security-related-issues-please-email-celsonerygmailcom-instead-of-using-the-issue-tracker)

Thank you

Credits
-------

[](#credits)

- [Celso Nery](https://github.com/celsonery) (Maintainer/Developer)
- [All Contributors](https://github.com/celsonery/php-initial/contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

568d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3494ad3c6faeafb657ccf282f2bbef26c0a9f275136c455fe146c720e021151?d=identicon)[Celso Nery](/maintainers/Celso%20Nery)

---

Top Contributors

[![celsonery](https://avatars.githubusercontent.com/u/13930284?v=4)](https://github.com/celsonery "celsonery (10 commits)")

---

Tags

Initialsinitialinitial namesfirst characters names

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/celsonery-initials/health.svg)

```
[![Health](https://phpackages.com/badges/celsonery-initials/health.svg)](https://phpackages.com/packages/celsonery-initials)
```

###  Alternatives

[lasserafn/php-initials

A package to generate initials in PHP

414.7M3](/packages/lasserafn-php-initials)[rackbeat/laravel-ui-avatars

Official Laravel wrapper around ui-avatars.com and LasseRafn/php-initial-avatar-generator

43144.3k](/packages/rackbeat-laravel-ui-avatars)[mwhite/random-uagent

A library for generating random User Agents

2353.4k2](/packages/mwhite-random-uagent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
