{"id":13530344,"url":"https://github.com/iamcal/php-emoji","last_synced_at":"2025-05-14T15:06:29.739Z","repository":{"id":1017983,"uuid":"845547","full_name":"iamcal/php-emoji","owner":"iamcal","description":"A PHP Emoji conversion library","archived":false,"fork":false,"pushed_at":"2023-11-07T03:23:55.000Z","size":18471,"stargazers_count":1257,"open_issues_count":14,"forks_count":287,"subscribers_count":88,"default_branch":"master","last_synced_at":"2025-04-11T17:49:25.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/iamcal.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}},"created_at":"2010-08-18T05:58:51.000Z","updated_at":"2025-04-10T15:15:26.000Z","dependencies_parsed_at":"2024-01-07T12:52:17.157Z","dependency_job_id":"17d13d2d-706a-49d8-a4bc-563899214fda","html_url":"https://github.com/iamcal/php-emoji","commit_stats":{"total_commits":120,"total_committers":9,"mean_commits":"13.333333333333334","dds":"0.15000000000000002","last_synced_commit":"95c8087933e4cd4d40026abe7d1c916878e82a87"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcal%2Fphp-emoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcal%2Fphp-emoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcal%2Fphp-emoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcal%2Fphp-emoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamcal","download_url":"https://codeload.github.com/iamcal/php-emoji/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254169062,"owners_count":22026208,"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":[],"created_at":"2024-08-01T07:00:48.458Z","updated_at":"2025-05-14T15:06:29.688Z","avatar_url":"https://github.com/iamcal.png","language":"PHP","funding_links":[],"categories":["标记( Markup )","Emojis","标记 Markup"],"sub_categories":[],"readme":"# php-emoji - Process Emoji in PHP\n\n[![Build Status](https://travis-ci.org/iamcal/php-emoji.svg?branch=master)](https://travis-ci.org/iamcal/php-emoji)\n\nThis is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.\n\nYou can read more about it and see a demo here: http://www.iamcal.com/emoji-in-web-apps/\n\nThe data this library is based on comes from another GitHub project: https://github.com/iamcal/emoji-data\n\n\n## USAGE\n```php\n\u003c?php\ninclude('emoji.php');\n\n\n# when you recieve text from a mobile device, convert it\n# to the unified format.\n\n$data = emoji_docomo_to_unified($data);   # DoCoMo devices\n$data = emoji_kddi_to_unified($data);     # KDDI \u0026 Au devices\n$data = emoji_softbank_to_unified($data); # Softbank \u0026 pre-iOS6 Apple devices\n$data = emoji_google_to_unified($data);   # Google Android devices\n\n\n# when sending data back to mobile devices, you can\n# convert back to their native format.\n\n$data = emoji_unified_to_docomo($data);   # DoCoMo devices\n$data = emoji_unified_to_kddi($data);     # KDDI \u0026 Au devices\n$data = emoji_unified_to_softbank($data); # Softbank \u0026 pre-iOS6 Apple devices\n$data = emoji_unified_to_google($data);   # Google Android devices\n\n\n# when displaying data to anyone else, you can use HTML\n# to format the emoji.\n\n$data = emoji_unified_to_html($data);\n\n# if you want to use an editor(i.e:wysiwyg) to create the content, \n# you can use html_to_unified to store the unified value.\n\n$data = emoji_html_to_unified(emoji_unified_to_html($data));\n```\n\nWhen using the HTML format, you'll also need to include the \u003ccode\u003eemoji.css\u003c/code\u003e file, which points \nto the \u003ccode\u003eemoji.png\u003c/code\u003e image.\n\nIMPORTANT NOTE: This library currently only deals with UTF-8. If your source data is JIS\nor Shift-JIS, you're out of luck for the moment.\n\n\n## Credits\n\nBy Cal Henderson \u003ccal@iamcal.com\u003e\n\nImages and Emoji data come from \u003ca href=\"https://github.com/iamcal/emoji-data\"\u003eemoji-data\u003c/a\u003e.\n\nThis work is dual-licensed under the GPL v3 and the MIT license.\n\n\n## Version History\n\n* v1.0.0 - 2009-10-20 : First release\n* v1.2.0 - 2011-03-27 : ?\n* v1.3.0 - 2011-07-27 : ?\n* v1.4.0 - 2016-02-15 : Switch to using emoji-data as the backend, at v2.4.0\n* v1.4.1 - 2016-10-06 : Added `emoji_contains_emoji()`, added travis\n* v1.4.2 - 2017-03-03 : Support for unified modifiers when converting to/from HTML only (issue #34)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamcal%2Fphp-emoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamcal%2Fphp-emoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamcal%2Fphp-emoji/lists"}