{"id":13704667,"url":"https://github.com/spatie/emoji","last_synced_at":"2025-05-15T12:02:22.218Z","repository":{"id":46761974,"uuid":"51245349","full_name":"spatie/emoji","owner":"spatie","description":"Programatically work with emoji characters","archived":false,"fork":false,"pushed_at":"2024-03-07T06:58:42.000Z","size":554,"stargazers_count":458,"open_issues_count":0,"forks_count":48,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-15T12:02:00.930Z","etag":null,"topics":["emoji","php"],"latest_commit_sha":null,"homepage":"https://freek.dev/376-using-emoji-in-php","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/spatie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"spatie","custom":"https://spatie.be/open-source/support-us"}},"created_at":"2016-02-07T11:33:22.000Z","updated_at":"2025-05-12T17:33:10.000Z","dependencies_parsed_at":"2024-12-11T06:22:26.069Z","dependency_job_id":null,"html_url":"https://github.com/spatie/emoji","commit_stats":{"total_commits":151,"total_committers":26,"mean_commits":"5.8076923076923075","dds":0.5695364238410596,"last_synced_commit":"80b13c39c350c106ce0f95f15d65d2a280b0836a"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Femoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Femoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Femoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatie%2Femoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatie","download_url":"https://codeload.github.com/spatie/emoji/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337612,"owners_count":22054253,"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":["emoji","php"],"created_at":"2024-08-02T21:01:16.569Z","updated_at":"2025-05-15T12:02:22.179Z","avatar_url":"https://github.com/spatie.png","language":"PHP","funding_links":["https://github.com/sponsors/spatie","https://spatie.be/open-source/support-us"],"categories":["目录"],"sub_categories":["字符串 Strings"],"readme":"# Programatically work with emoji characters\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/emoji.svg?style=flat-square)](https://packagist.org/packages/spatie/emoji)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n![Tests](https://github.com/spatie/emoji/workflows/Tests/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/spatie/emoji.svg?style=flat-square)](https://packagist.org/packages/spatie/emoji)\n\nIn PHP, you can display emoji characters just by typing them:\n\n```php\necho \"😃\";\n```\n\nThis package provides some functionality to work with emojis if your IDE or used font can't render them correctly:\n\n```php\nEmoji::grinningFace();\n```\n\nSpatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).\n\n## Support us\n\n[\u003cimg src=\"https://github-ads.s3.eu-central-1.amazonaws.com/emoji.jpg?t=1\" width=\"419px\" /\u003e](https://spatie.be/github-ad-click/emoji)\n\nWe invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).\n\nWe highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).\n\n## Postcardware\n\nYou're free to use this package (it's [MIT-licensed](LICENSE.md)), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.\n\nOur address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.\n\nThe best postcards will get published on the open source page on our website.\n\n## Install\n\nYou can install the package via composer:\n``` bash\ncomposer require spatie/emoji\n```\n\n## Usage\n\nThe `Spatie\\Emoji\\Emoji`-class contains character constants that may be used directly:\n\n```php\nEmoji::CHARACTER_GRINNING_FACE;\n```\n\nOr you can use the shorter method by leaving off \"character\" and using camelCase:\n```php\nEmoji::grinningFace();\n```\n\nIf you want to get an array containing all emojis, you can use this method:\n```php\nEmoji::all();\n ```\n\nYou can also use an [ISO 3166 Alpha2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code and get the appropriate flag for the country:\n```php\nEmoji::countryFlag('be'); // 🇧🇪\n```\n\nThis package contains Full Emoji List v13.1 based on https://unicode.org/Public/emoji/13.1/emoji-test.txt all methods and constants are auto-generated.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nWe are accepting PRs that add characters to the class.\nPlease use [this list](http://unicode.org/emoji/charts/full-emoji-list.html) to look up the unicode value and\nthe name of the character.\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you've found a bug regarding security please mail [security@spatie.be](mailto:security@spatie.be) instead of using the issue tracker.\n\n## Credits\n\n- [Freek Van der Herten](https://github.com/freekmurze)\n- [BoGnY](https://github.com/bogny)\n- [All Contributors](../../contributors)\n\n## About Spatie\nSpatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Femoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatie%2Femoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatie%2Femoji/lists"}