https://github.com/overtrue/laravel-emoji
:smile: This package assist you in getting started with emoji easily.
https://github.com/overtrue/laravel-emoji
emoji emojione laravel
Last synced: over 1 year ago
JSON representation
:smile: This package assist you in getting started with emoji easily.
- Host: GitHub
- URL: https://github.com/overtrue/laravel-emoji
- Owner: overtrue
- Created: 2017-07-22T14:31:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-13T05:15:31.000Z (over 2 years ago)
- Last Synced: 2025-03-29T06:08:35.996Z (over 1 year ago)
- Topics: emoji, emojione, laravel
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 150
- Watchers: 6
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Laravel Emoji
:smile: This package assist you in getting started with emoji easily.




[](https://github.com/sponsors/overtrue)
## Installing
```shell
$ composer require overtrue/laravel-emoji
```
## Usage
```php
Emoji::toImage(':smile:'); //
'
Emoji::toShort('😄'); // :smile:
Emoji::shortnameToUnicode(':smile:'); // 😄
// using helper
// default transform shorname to unicode, you can change it in config file.
emoji(':smile:'); // 😄
// access emoji services, return \Emojione\Client instance.
app('emoji');
// or
app(\Emojione\Client::class);
```
### Configurations
```shell
// config
$ php artisan vendor:publish --provider="Overtrue\\LaravelEmoji\\EmojiServiceProvider" --tag=config
```
## :heart: Sponsor me
[](https://github.com/sponsors/overtrue)
如果你喜欢我的项目并想支持它,[点击这里 :heart:](https://github.com/sponsors/overtrue)
## Project supported by JetBrains
Many thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects.
[](https://www.jetbrains.com/?from=https://github.com/overtrue)
## PHP 扩展包开发
> 想知道如何从零开始构建 PHP 扩展包?
>
> 请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— [《PHP 扩展包实战教程 - 从入门到发布》](https://learnku.com/courses/creating-package)
## License
MIT