https://github.com/0xm4ze/avatar
👤 Generate user avatar using name initials letter.
https://github.com/0xm4ze/avatar
avatar avatar-generator avatars
Last synced: 3 months ago
JSON representation
👤 Generate user avatar using name initials letter.
- Host: GitHub
- URL: https://github.com/0xm4ze/avatar
- Owner: 0xm4ze
- License: mit
- Created: 2022-04-13T17:35:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-25T20:31:49.000Z (over 3 years ago)
- Last Synced: 2025-06-09T08:43:06.348Z (4 months ago)
- Topics: avatar, avatar-generator, avatars
- Language: PHP
- Homepage:
- Size: 154 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Avatar for PHP
Generate user avatar using name initials letter.

## Features
- Data URI image ready (also save as PNG/JPG).
- Consistent color.
- Customize size, shape: square, circle.
- Small, fast.## Install
Via Composer
```bash
$ composer require tal7aouy/avatar
```### Implementation
```php
saveAs('path/to/filename');
$avatar->saveAs('path/to/filename', Avatar::MIME_TYPE_JPEG);```
```html
![]()
```To use static colour or custom colour use `->setColor($background, $foreground);`
```html
![]()
```# License
**Avatar** is open-sourced software licensed under the [MIT license](LICENSE.md).