{"id":15916887,"url":"https://github.com/viest/laricon","last_synced_at":"2025-03-17T23:32:09.175Z","repository":{"id":62544113,"uuid":"87436114","full_name":"viest/laricon","owner":"viest","description":"Laravel generate awesome and unique identicons with beautiful colors","archived":false,"fork":false,"pushed_at":"2017-04-06T15:33:34.000Z","size":9,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T15:53:56.674Z","etag":null,"topics":["icon","identicon","image","img","laravel","php","php7","png"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-06T14:04:47.000Z","updated_at":"2024-12-24T05:51:27.000Z","dependencies_parsed_at":"2022-11-02T21:45:20.885Z","dependency_job_id":null,"html_url":"https://github.com/viest/laricon","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viest%2Flaricon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viest%2Flaricon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viest%2Flaricon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viest%2Flaricon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viest","download_url":"https://codeload.github.com/viest/laricon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244126826,"owners_count":20402185,"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":["icon","identicon","image","img","laravel","php","php7","png"],"created_at":"2024-10-06T18:06:17.552Z","updated_at":"2025-03-17T23:32:08.898Z","avatar_url":"https://github.com/viest.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Identicon generator for Laravel\n\n**Laricon** is a library which generate an [identicon](http://en.wikipedia.org/wiki/Identicon) image based on a string.\n\nHere is some examples of awesome results!\n\n![Identicon example #1](doc/benjaminAtYzalisDotCom.png)\u0026nbsp;\u0026nbsp;\n![Identicon example #2](doc/Benjamin.png)\u0026nbsp;\u0026nbsp;\n![Identicon example #3](doc/8.8.8.8.png)\u0026nbsp;\u0026nbsp;\n![Identicon example #4](doc/8.8.4.4.png)\u0026nbsp;\u0026nbsp;\n![Identicon example #5](doc/yzalis.png)\n\n## Installation\n\n```bash\ncomposer require vikin/laricon\n```\n\n## Usage\n\nImages are generated in PNG format with transparent background.\n\nThe string can be an email, an IP address, a username, an ID or something else.\n\n### Generate an identicon\n\nAdd in the `config/app.php` file\n\n``` php\n'providers' =\u003e [\n    ....\n    Vikin\\Laricon\\Providers\\LariconServiceProvider::class\n],\n\n'aliases' =\u003e [\n    ....\n    'Laricon' =\u003e Vikin\\Laricon\\Facades\\Laricon::class\n]\n```\n\nThen you can generate and display an identicon image\n\n``` php\nLaricon::displayImage('vikin');\n```\n\nor generate and get the image data\n\n``` php\nLaricon::getImageData('vikin');\n```\n\nor generate and get the base 64 image uri ready for integrate into an HTML img tag.\n\n``` php\nLaricon::getImageDataUri('vikin');\n```\n``` html\n\u003cimg src=\"{{ Laricon::getImageDataUri('vikin') }}\" alt=\"Vikin Identicon\" /\u003e\n```\n\n\n### Change the size\n\nBy 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.\n\n``` php\nLaricon::displayImage('vikin', 512);\n```\n\n### Color\n\nThe color is automatically generated according to the string hash but you can chose to specify a color by adding a third argument.\n\nColor can be an hexadecimal with 6 characters\n\n``` php\nLaricon::displayImage('vikin', 64, 'A87EDF');\n```\n\nor an array with red, green, blue value\n\n``` php\nLaricon::displayImage('foo', 64, [200, 100, 150]);\n```\n\nThat's it!\n\n## License\n\nIdenticon is released under the MIT License. See the bundled LICENSE file for details.\n\n\u003e From the [yzalis/Identicon](https://github.com/yzalis/Identicon)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviest%2Flaricon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviest%2Flaricon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviest%2Flaricon/lists"}