Skip to content
MonsterID adaptation for Composer and modern PHP versions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
docs
example
src
tests
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
composer.json
legacy.php

README.md

MonsterID

Packagist license Travis Code Climate Coverage Code Climate

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.

Monster Example

MonsterID was inspired by a post by Don Park and the Combinatoric Critters.

All graphics were created by Andreas Gohr. The source code and the graphics are provided under the MIT License.

Installation

Install it with Composer

composer require 'sandfoxme/monsterid:^1.2'

Usage

<?php

use function SandFox\MonsterID\build_monster;

header('Content-type: image/png');
echo build_monster('sandfox@sandfox.me', 150);

Read full documentation here: https://sandfox.dev/monsterid.html

Adaptation

Adaptation as a composer library performed by Anton "Sand Fox" Smirnov

You can’t perform that action at this time.