PHPackages                             vikin/laricon - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. vikin/laricon

ActiveLibrary[Image &amp; Media](/categories/media)

vikin/laricon
=============

Generate awesome and unique identicons with beautiful colors

v1.0(9y ago)16647↓100%1MITPHPPHP &gt;=5.5.9

Since Apr 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/viest/laricon)[ Packagist](https://packagist.org/packages/vikin/laricon)[ RSS](/packages/vikin-laricon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Identicon generator for Laravel
===============================

[](#identicon-generator-for-laravel)

**Laricon** is a library which generate an [identicon](http://en.wikipedia.org/wiki/Identicon) image based on a string.

Here is some examples of awesome results!

[![Identicon example #1](doc/benjaminAtYzalisDotCom.png)](doc/benjaminAtYzalisDotCom.png) [![Identicon example #2](doc/Benjamin.png)](doc/Benjamin.png) [![Identicon example #3](doc/8.8.8.8.png)](doc/8.8.8.8.png) [![Identicon example #4](doc/8.8.4.4.png)](doc/8.8.4.4.png) [![Identicon example #5](doc/yzalis.png)](doc/yzalis.png)

Installation
------------

[](#installation)

```
composer require vikin/laricon
```

Usage
-----

[](#usage)

Images are generated in PNG format with transparent background.

The string can be an email, an IP address, a username, an ID or something else.

### Generate an identicon

[](#generate-an-identicon)

Add in the `config/app.php` file

```
'providers' => [
    ....
    Vikin\Laricon\Providers\LariconServiceProvider::class
],

'aliases' => [
    ....
    'Laricon' => Vikin\Laricon\Facades\Laricon::class
]
```

Then you can generate and display an identicon image

```
Laricon::displayImage('vikin');
```

or generate and get the image data

```
Laricon::getImageData('vikin');
```

or generate and get the base 64 image uri ready for integrate into an HTML img tag.

```
Laricon::getImageDataUri('vikin');
```

```

```

### Change the size

[](#change-the-size)

By default the size will be 64 pixels. If you want to change the image size just add a secondary parameter. 512 x 512px in this example.

```
Laricon::displayImage('vikin', 512);
```

### Color

[](#color)

The color is automatically generated according to the string hash but you can chose to specify a color by adding a third argument.

Color can be an hexadecimal with 6 characters

```
Laricon::displayImage('vikin', 64, 'A87EDF');
```

or an array with red, green, blue value

```
Laricon::displayImage('foo', 64, [200, 100, 150]);
```

That's it!

License
-------

[](#license)

Identicon is released under the MIT License. See the bundled LICENSE file for details.

> From the [yzalis/Identicon](https://github.com/yzalis/Identicon)

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3320d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84c9bf729cfb5e1fc86c22f6f55b534b818a146c16f9fc39eaa6654e81730a62?d=identicon)[Viest](/maintainers/Viest)

---

Tags

iconidenticonimageimglaravelphpphp7pngiconidenticonslaricon

### Embed Badge

![Health badge](/badges/vikin-laricon/health.svg)

```
[![Health](https://phpackages.com/badges/vikin-laricon/health.svg)](https://phpackages.com/packages/vikin-laricon)
```

###  Alternatives

[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4868.9k](/packages/jkphl-iconizr)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[spacecatninja/imager-x

Ninja powered image transforms.

29390.0k23](/packages/spacecatninja-imager-x)[contao/image

Contao image library

131.7M9](/packages/contao-image)[mostafaznv/nova-video

Video Field for Laravel Nova

22398.0k1](/packages/mostafaznv-nova-video)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
