splitbrain / php-ringicon
A indenticon/glyphicon like avatar generator
Installs: 9 586
Dependents: 2
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 5
Open Issues: 0
Requires
- php: >=5.3.0
- ext-gd: *
This package is auto-updated.
Last update: 2024-11-29 05:09:06 UTC
README
This minimal library generates identifiers based on an input seed. It can be used to generate avatar images or visualize other identifying info (like crypto keys). The result is a PNG or SVG image.
It has no dependencies except the GD library extension for PHP for PNG images.
Usage
See the demo.html
/demo.php
files for examples.
You can tune the following parameters:
- The size of the resulting image (via constructor)
- The number of rings to generate (via constructor)
- Multicolor versus monochrome image (via
setMono()
method)
The monochrome version uses a single color and variates the alpha transparency of the rings.