{"id":21889224,"url":"https://github.com/dmester/jdenticon-php","last_synced_at":"2025-07-24T21:11:39.593Z","repository":{"id":31855393,"uuid":"129130306","full_name":"dmester/jdenticon-php","owner":"dmester","description":"PHP library for generating identicons as PNG and SVG.","archived":false,"fork":false,"pushed_at":"2022-11-09T22:51:49.000Z","size":125,"stargazers_count":57,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T03:41:25.827Z","etag":null,"topics":["avatar","identicon","jdenticon","php"],"latest_commit_sha":null,"homepage":"https://jdenticon.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmester.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-11T17:29:52.000Z","updated_at":"2025-01-21T09:40:20.000Z","dependencies_parsed_at":"2023-01-14T19:54:52.297Z","dependency_job_id":null,"html_url":"https://github.com/dmester/jdenticon-php","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmester%2Fjdenticon-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmester%2Fjdenticon-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmester%2Fjdenticon-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmester%2Fjdenticon-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmester","download_url":"https://codeload.github.com/dmester/jdenticon-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252854323,"owners_count":21814667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avatar","identicon","jdenticon","php"],"created_at":"2024-11-28T11:20:37.564Z","updated_at":"2025-07-24T21:11:39.551Z","avatar_url":"https://github.com/dmester.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Jdenticon-php](https://jdenticon.com)\nPHP library for generating highly recognizable identicons.\n\n![Sample identicons](https://jdenticon.com/hosted/github-samples.png)\n\n[![Test Status](https://github.com/dmester/jdenticon-php/workflows/Tests/badge.svg)](https://github.com/dmester/jdenticon-php/actions)\n[![Total Downloads](https://poser.pugx.org/jdenticon/jdenticon/downloads)](https://packagist.org/packages/jdenticon/jdenticon)\n\n## Features\nJdenticon-php is a PHP port of the JavaScript library [Jdenticon](https://github.com/dmester/jdenticon).\n\n* Renders identicons as PNG or SVG with no extension requirements\n* Runs on PHP 7.4 and later (use Jdenticon package version 1.0.2 for compatibility with PHP 5.3-7.3)\n\n## Live demo\nhttps://jdenticon.com\n\n## Getting started\nUsing Jdenticon is simple. Follow the steps below to integrate Jdenticon into your website.\n\n### 1. Install the Jdenticon Composer package\nThe easiest way to get started using Jdenticon for PHP is to install the Jdenticon Composer package.\n\n```\ncomposer require jdenticon/jdenticon\n```\n\n### 2. Create a php file that will serve an icon\nNow create a file that you call icon.php and place it in the root of your application. Add the following content to the file.\n\n```PHP\n\u003c?php\ninclude_once(\"vendor/autoload.php\");\n\n// Set max-age to a week to benefit from client caching (this is optional)\nheader('Cache-Control: max-age=604800');\n\n// Parse query string parameters\n$value = $_GET['value'];\n$size = min(max(intval($_GET['size']), 20), 500);\n\n// Render icon\n$icon = new \\Jdenticon\\Identicon();\n$icon-\u003esetValue($value);\n$icon-\u003esetSize($size);\n$icon-\u003edisplayImage('png');\n```\n\n### 3. Use icon.php\nOpen up your favourite browser and navigate to http://localhost:PORT/icon.php?size=100\u0026value=anything. \nAn identicon should be displayed. Try to change the url parameters to see the difference in the generated icon.\n\n## Other resources\n### API documentation\nFor more usage examples and API documentation, please see:\n\nhttps://jdenticon.com/php-api.html\n\n## License\nJdenticon-php is released under the [MIT license](https://github.com/dmester/jdenticon-php/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmester%2Fjdenticon-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmester%2Fjdenticon-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmester%2Fjdenticon-php/lists"}