{"id":49080061,"url":"https://github.com/dicebear/php-core","last_synced_at":"2026-04-20T12:35:02.319Z","repository":{"id":348593506,"uuid":"1198859675","full_name":"dicebear/php-core","owner":"dicebear","description":"PHP implementation of DiceBear. Read-only subtree split of dicebear/dicebear - please open issues there.","archived":false,"fork":false,"pushed_at":"2026-04-11T21:06:43.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"10.x","last_synced_at":"2026-04-11T23:15:55.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/dicebear/dicebear","language":"PHP","has_issues":false,"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/dicebear.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-01T20:37:29.000Z","updated_at":"2026-04-11T21:06:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dicebear/php-core","commit_stats":null,"previous_names":["dicebear/php-core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dicebear/php-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dicebear%2Fphp-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dicebear%2Fphp-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dicebear%2Fphp-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dicebear%2Fphp-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dicebear","download_url":"https://codeload.github.com/dicebear/php-core/tar.gz/refs/heads/10.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dicebear%2Fphp-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32047371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-04-20T12:35:01.660Z","updated_at":"2026-04-20T12:35:02.310Z","avatar_url":"https://github.com/dicebear.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\u003cimg src=\"https://www.dicebear.com/logo-readme.svg\" width=\"28\" /\u003e DiceBear Core (PHP)\u003c/h1\u003e\n\nPHP implementation of the DiceBear avatar library. Generates deterministic SVG avatars from style definitions and a seed string.\n\nDiceBear is available for multiple languages. All implementations share the same PRNG and rendering pipeline, producing identical SVG output for the same seed, style, and options — regardless of the language used.\n\n[Playground](https://www.dicebear.com/playground) |\n[Documentation](https://www.dicebear.com/introduction)\n\n## Installation\n\n```sh\ncomposer require dicebear/core\n```\n\nRequires PHP 8.2+ and the `mbstring` extension.\n\n## Usage\n\n```php\nuse DiceBear\\Avatar;\n\n// From a style definition (JSON-decoded array)\n$definition = json_decode(file_get_contents('path/to/style.json'), true);\n\n$avatar = new Avatar($definition, [\n    'seed' =\u003e 'John Doe',\n    'size' =\u003e 128,\n]);\n\necho $avatar;              // SVG string\necho $avatar-\u003etoDataUri(); // data:image/svg+xml;charset=utf-8,...\n```\n\n### With options\n\n```php\n$avatar = new Avatar($definition, [\n    'seed' =\u003e 'Jane',\n    'size' =\u003e 64,\n    'flip' =\u003e 'horizontal',\n    'backgroundColor' =\u003e ['#0077b6', '#00b4d8'],\n    'backgroundColorFill' =\u003e 'linear',\n    'scale' =\u003e [0.8, 1.0],\n    'borderRadius' =\u003e 10,\n]);\n```\n\n### Using the Style class\n\n```php\nuse DiceBear\\Style;\nuse DiceBear\\Avatar;\nuse DiceBear\\OptionsDescriptor;\n\n$style = new Style($definition);\n\n// Inspect available options for a style\n$descriptor = new OptionsDescriptor($style);\n$fields = $descriptor-\u003etoJSON();\n\n// Create multiple avatars from the same style\n$avatar1 = new Avatar($style, ['seed' =\u003e 'Alice']);\n$avatar2 = new Avatar($style, ['seed' =\u003e 'Bob']);\n```\n\n## License\n\nThe source code of DiceBear is released under the **MIT License**.\n\n## Sponsors\n\nAdvertisement: Many thanks to our sponsors who provide us with free or discounted products.\n\n\u003ca href=\"https://bunny.net/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://www.dicebear.com/sponsors/bunny-light.svg\"\u003e\n        \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://www.dicebear.com/sponsors/bunny-dark.svg\"\u003e\n        \u003cimg alt=\"bunny.net\" src=\"https://www.dicebear.com/sponsors/bunny-dark.svg\" height=\"64\"\u003e\n    \u003c/picture\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdicebear%2Fphp-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdicebear%2Fphp-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdicebear%2Fphp-core/lists"}