Skip to content

Boring Avatars are tiny PHP Classes that generates custom, SVG-based avatars from any username and color palette like https://github.com/boringdesigners/boring-avatars.

License

Notifications You must be signed in to change notification settings

wi-wissen/boring-avatars

Repository files navigation

Boring Avatars

Boring avatars are tiny PHP Classes that generates custom, SVG-based avatars from any username and color palette like boringdesigners/boring-avatars.

Installation

composer require wi-wissen/boring-avatars

Usage

You can use the classes directly to get SVG as string:

use BoringAvatars\AvatarBeam;

AvatarBeam::make([
    'name' => 'Jane Doe',
    'size' => '120', // in px
    'colors' => ['#ffad08',' #edd75a',' #73b06f',' #0c8f8f',' #405059'],
    'title' => true, //set name property as title tag in generated svg
    'square' => false,
]);

Or serve them using index.php:

http://boringavatars.test/?variant={bauhaus|beam|marble|ring|text}&name=Jane Doe&size=120&color=#ffad08,#edd75a,#73b06f,#0c8f8f,#405059&title=true&square=false

About

Boring Avatars are tiny PHP Classes that generates custom, SVG-based avatars from any username and color palette like https://github.com/boringdesigners/boring-avatars.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages