lantern-lighthouse / identicon
Avatar generation library
1.1.5
2026-02-01 21:12 UTC
Requires
- php: >=8.1
This package is auto-updated.
Last update: 2026-03-29 21:28:23 UTC
README
A lightweight PHP library for generating user avatars based on username.
Installation
composer require lantern-lighthouse/identicon
Usage
Image Generating
use Identicon\Identicon; // Simple image generation Identicon::generateFromString("Bub fix"); // Imgage generation with more parameters (..., image size, inner grid size/level of detail) Identicon::generateFromString("Bub fix", 64, 2);
Avatar Rendering
// Generate 200x200 image with level of detail = 5 Identicon::outputImage("Bub fix");
Requirements
- PHP 8.1 or higher
License
GPL-3.0 License