PHPackages                             mbonghanoy/avatar - 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. mbonghanoy/avatar

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

mbonghanoy/avatar
=================

Generate simple SVG avatars from names or labels.

v1.0.0(1mo ago)02↓100%MITPHP

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/mbonghanoy/php-avatar-generator)[ Packagist](https://packagist.org/packages/mbonghanoy/avatar)[ RSS](/packages/mbonghanoy-avatar/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

mbonghanoy/avatar
=================

[](#mbonghanoyavatar)

Generate simple SVG avatars from names or labels.

Features
--------

[](#features)

- Deterministic background colors based on the input text
- UTF-8 safe initials generation
- Circle and square avatar shapes
- SVG output or base64 data URI output
- No external runtime dependencies beyond `ext-mbstring`

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

[](#installation)

```
composer require mbonghanoy/avatar
```

Usage
-----

[](#usage)

```
