arokettu / monsterid
MonsterID is a method to generate a unique monster image based upon a certain identifier (IP address, email address, whatever). It can be used to automatically provide personal avatar images in blog comments or other community services.
Requires
- php: ^8.0
- ext-gd: *
- arokettu/is-resource: ^1.0
- arokettu/random-polyfill: ^1.0.1
- php-http/discovery: ^1.19
- psr/http-factory: ^1.0
Requires (Dev)
- arokettu/random-polyfill: >= 1.0.1 < 1.99
- httpsoft/http-message: ^1.1
- phpunit/phpunit: >= 7.0 < 10
- psy/psysh: *
- sandfox.dev/code-standard: ^1.2023.12.09
- squizlabs/php_codesniffer: *
- vimeo/psalm: ^5.4
README
MonsterID is a method to generate a unique monster image based upon a certain identifier (IP address, email address, whatever). It can be used to automatically provide personal avatar images in blog comments or other community services.
MonsterID was inspired by a post by Don Park and the Combinatoric Critters.
Installation
Install it with Composer
composer require 'arokettu/monsterid'
Usage
<?php use function Arokettu\MonsterID\build_monster; header('Content-type: image/png'); echo build_monster('sandfox@sandfox.me', 150);
Read full documentation here: https://sandfox.dev/php/monsterid.html
Also on Read the Docs: https://monsterid.readthedocs.io/
License
All graphics were created by Andreas Gohr. The source code and the graphics are provided under the MIT License.
Upgraded and maintained by Anton "Sand Fox" Smirnov.
Original implementation can be found here.