{"id":20140241,"url":"https://github.com/10quality/php-emoji","last_synced_at":"2025-08-03T19:04:35.883Z","repository":{"id":56937901,"uuid":"109064173","full_name":"10quality/php-emoji","owner":"10quality","description":"Library to convert certain emojis to public svgs (html).","archived":false,"fork":false,"pushed_at":"2017-11-07T17:37:33.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"v1.0","last_synced_at":"2025-05-06T13:13:12.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/10quality.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":"2017-10-31T23:45:24.000Z","updated_at":"2017-11-01T00:13:25.000Z","dependencies_parsed_at":"2022-08-21T01:40:19.785Z","dependency_job_id":null,"html_url":"https://github.com/10quality/php-emoji","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/10quality/php-emoji","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fphp-emoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fphp-emoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fphp-emoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fphp-emoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10quality","download_url":"https://codeload.github.com/10quality/php-emoji/tar.gz/refs/heads/v1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fphp-emoji/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268595791,"owners_count":24275771,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-13T21:49:52.324Z","updated_at":"2025-08-03T19:04:35.822Z","avatar_url":"https://github.com/10quality.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Emoji\n\nLibrary to convert certain emojis to public svgs (html).\n\n- [Install](#install)\n- [Usage](#usage)\n- [Supported Emojis](#supported-emojis)\n- [License](#license)\n\n## Install\n\nWith composer:\n```bash\ncomposer require 10quality/php-emoji\n```\n\n## Usage\n\nUsing global functions:\n```php\n// Following example will return an svg url\n// -- echos 'https://s.w.org/images/core/emoji/2.3/svg/1f497.svg'\necho emoji_to_img('ðŸ’');\n\n// Following example will return an svg wrapped in an image HTML tag\n// -- echos '\u003cimg class=\"emoji\" alt=\"emoji-heart\" src=\"https://s.w.org/images/core/emoji/2.3/svg/1f497.svg\"/\u003e'\necho emoji_to_html('ðŸ’');\n```\n\nUsing `Emoji` class:\n```php\nuse TenQuality\\Utility\\Emoji;\n\n/**\n * @param string First param is the text you want to convert.\n * @param string Second param is the type of output wanted.\n */\necho Emoji::convert('ðŸ’', Emoji::URL);\necho Emoji::convert('ðŸ’', Emoji::HTML);\n```\n\n## Supported Emojis\n\n| Emoji | Characters | Emoji | Characters |\n| ----- | ---------- | ----- | ---------- |\n| ![Heart](https://s.w.org/images/core/emoji/2.3/svg/1f497.svg) | `\u003c3` | ![Heart](https://s.w.org/images/core/emoji/2.3/svg/1f497.svg) | `ðŸ’` |\n| ![Coffee](https://s.w.org/images/core/emoji/2.3/svg/2615.svg) | `â˜•ï¸` | ![Smile face](https://s.w.org/images/core/emoji/2.3/svg/1f642.svg) | `:)` |\n| ![Smile](https://s.w.org/images/core/emoji/2.3/svg/1f603.svg) | `:D` | ![Pensive face](https://s.w.org/images/core/emoji/2.3/svg/1f614.svg) | `:(` |\n| ![Crying face](https://s.w.org/images/core/emoji/2.3/svg/1f622.svg) | `:'(` | ![Savouring face](https://s.w.org/images/core/emoji/2.3/svg/1f60b.svg) | `:P` |\n| ![Smiling halo](https://s.w.org/images/core/emoji/2.3/svg/1f607.svg) | `O:)` | ![Confused](https://s.w.org/images/core/emoji/2.3/svg/1f615.svg) | `o.O` |\n| ![Winking](https://s.w.org/images/core/emoji/2.3/svg/1f609.svg) | `;)` | ![Astonished](https://s.w.org/images/core/emoji/2.3/svg/1f632.svg) | `:O` |\n| ![Expressionless](https://s.w.org/images/core/emoji/2.3/svg/1f611.svg) | `-_-` | ![Angry](https://s.w.org/images/core/emoji/2.3/svg/1f620.svg) | `\u003e:O` |\n| ![Kissing](https://s.w.org/images/core/emoji/2.3/svg/1f617.svg) | `:*` | ![Cheerful](https://s.w.org/images/core/emoji/2.3/svg/1f601.svg) | `^_^` |\n| ![Eyeglasses](https://s.w.org/images/core/emoji/2.3/svg/1f453.svg) | `8-)` | ![Sunglasses](https://s.w.org/images/core/emoji/2.3/svg/1f60e.svg) | `8\\|` |\n| ![Unamused](https://s.w.org/images/core/emoji/2.3/svg/1f612.svg) | `\u003e:(` | ![Flushed](https://s.w.org/images/core/emoji/2.3/svg/1f633.svg) | `☺` |\n| ![Thumbs Up](https://s.w.org/images/core/emoji/2.3/svg/1f44d.svg) | `(y)` | ![Right](https://s.w.org/images/core/emoji/2.3/svg/27a1.svg) | `➡` |\n\n## License\n\nCopyright (c) 2017 [10Quality](http://www.10quality.com/). Under MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10quality%2Fphp-emoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10quality%2Fphp-emoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10quality%2Fphp-emoji/lists"}