2017 © Pedro PelĆ”ez
 

library jdenticon

Render PNG and SVG identicons.

image

jdenticon/jdenticon

Render PNG and SVG identicons.

  • Saturday, July 21, 2018
  • by dmester
  • Repository
  • 1 Watchers
  • 3 Stars
  • 975 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 454 % Grown

The README.md

Jdenticon-php

PHP library for generating highly recognizable identicons., (*1)

Sample identicons, (*2)

Test Status Total Downloads, (*3)

Features

Jdenticon-php is a PHP port of the JavaScript library Jdenticon., (*4)

  • Renders identicons as PNG or SVG with no extension requirements.
  • Runs on PHP 5.3 and later.

Live demo

https://jdenticon.com, (*5)

Getting started

Using Jdenticon is simple. Follow the steps below to integrate Jdenticon into your website., (*6)

1. Install the Jdenticon Composer package

The easiest way to get started using Jdenticon for PHP is to install the Jdenticon Composer package., (*7)

composer require jdenticon/jdenticon

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., (*8)

<?php
include_once("vendor/autoload.php");

// Set max-age to a week to benefit from client caching (this is optional)
header('Cache-Control: max-age=604800');

// Parse query string parameters
$value = $_GET['value'];
$size = min(max(intval($_GET['size']), 20), 500);

// Render icon
$icon = new \Jdenticon\Identicon();
$icon->setValue($value);
$icon->setSize($size);
$icon->displayImage('png');

3. Use icon.php

Open up your favourite browser and navigate to http://localhost:PORT/icon.php?size=100&value=anything. An identicon should be displayed. Try to change the url parameters to see the difference in the generated icon., (*9)

Other resources

API documentation

For more usage examples and API documentation, please see:, (*10)

https://jdenticon.com/php-api.html, (*11)

License

Jdenticon-php is released under the MIT license., (*12)

The Versions

21/07 2018

dev-master

9999999-dev https://jdenticon.com/

Render PNG and SVG identicons.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Daniel Mester PirttijƤrvi

avatar identicon jdenticon

21/07 2018

0.10.0

0.10.0.0 https://jdenticon.com/

Render PNG and SVG identicons.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Daniel Mester PirttijƤrvi

avatar identicon jdenticon

20/07 2018

dev-test-travis2

dev-test-travis2 https://jdenticon.com/

Render PNG and SVG identicons.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Daniel Mester PirttijƤrvi

avatar identicon jdenticon

20/07 2018

dev-test-travis

dev-test-travis https://jdenticon.com/

Render PNG and SVG identicons.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Daniel Mester PirttijƤrvi

avatar identicon jdenticon

15/04 2018

0.9.0

0.9.0.0 https://jdenticon.com/

Render PNG and SVG identicons.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Daniel Mester PirttijƤrvi

avatar identicon jdenticon