PHPackages                             jdenticon/jdenticon - 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. jdenticon/jdenticon

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

jdenticon/jdenticon
===================

Render PNG and SVG identicons.

2.0.0(10mo ago)60393.1k↓19%105MITPHPPHP &gt;=7.4.0CI passing

Since Apr 15Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/dmester/jdenticon-php)[ Packagist](https://packagist.org/packages/jdenticon/jdenticon)[ Docs](https://jdenticon.com/)[ RSS](/packages/jdenticon-jdenticon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (5)

[Jdenticon-php](https://jdenticon.com)
======================================

[](#jdenticon-php)

PHP library for generating highly recognizable identicons.

[![Sample identicons](https://camo.githubusercontent.com/099bf18a8c40b4b8530a1ae598e82c59f25c72a394a77acf298cbf110c65ef25/68747470733a2f2f6a64656e7469636f6e2e636f6d2f686f737465642f6769746875622d73616d706c65732e706e67)](https://camo.githubusercontent.com/099bf18a8c40b4b8530a1ae598e82c59f25c72a394a77acf298cbf110c65ef25/68747470733a2f2f6a64656e7469636f6e2e636f6d2f686f737465642f6769746875622d73616d706c65732e706e67)

[![Test Status](https://github.com/dmester/jdenticon-php/workflows/Tests/badge.svg)](https://github.com/dmester/jdenticon-php/actions)[![Total Downloads](https://camo.githubusercontent.com/497b780b45e8de42e3b41f5a8d22d65fa34dc2ef73c2fb1409849887edf831ec/68747470733a2f2f706f7365722e707567782e6f72672f6a64656e7469636f6e2f6a64656e7469636f6e2f646f776e6c6f616473)](https://packagist.org/packages/jdenticon/jdenticon)

Features
--------

[](#features)

Jdenticon-php is a PHP port of the JavaScript library [Jdenticon](https://github.com/dmester/jdenticon).

- Renders identicons as PNG or SVG with no extension requirements
- Runs on PHP 7.4 and later (use Jdenticon package version 1.0.2 for compatibility with PHP 5.3-7.3)

Live demo
---------

[](#live-demo)

Getting started
---------------

[](#getting-started)

Using Jdenticon is simple. Follow the steps below to integrate Jdenticon into your website.

### 1. Install the Jdenticon Composer package

[](#1-install-the-jdenticon-composer-package)

The easiest way to get started using Jdenticon for PHP is to install the Jdenticon Composer package.

```
composer require jdenticon/jdenticon

```

### 2. Create a php file that will serve an icon

[](#2-create-a-php-file-that-will-serve-an-icon)

Now create a file that you call icon.php and place it in the root of your application. Add the following content to the file.

```
