Avatar generation library

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/lantern-lighthouse/identicon

1.1.5 2026-02-01 21:12 UTC

This package is auto-updated.

Last update: 2026-02-01 21:14:24 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