All Projects β†’ abei2017 β†’ yii2-emoji

abei2017 / yii2-emoji

Licence: other
πŸ˜„ this is a emoji extension of yii2.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to yii2-emoji

background-translation-i18n
Based on the YII2 module to translate JSON formatted translation files on the web
Stars: ✭ 11 (-35.29%)
Mutual labels:  yii2, yii2-extension
yii2-sweet-submit
sweet sumit using sweetalert
Stars: ✭ 26 (+52.94%)
Mutual labels:  yii2, yii2-extension
yii2-cashier
Yii2 Cashier provides an interface to Stripe's subscription billing services.
Stars: ✭ 43 (+152.94%)
Mutual labels:  yii2, yii2-extension
ember-emojione
EmojiOne helper and components for your Ember App
Stars: ✭ 16 (-5.88%)
Mutual labels:  emoji, emojione
yii2-elasticsearch
Elasticsearch client based on official Elasticsearch PHP library
Stars: ✭ 14 (-17.65%)
Mutual labels:  yii2, yii2-extension
ar-search
Provides unified search model for Yii ActiveRecord
Stars: ✭ 31 (+82.35%)
Mutual labels:  yii2, yii2-extension
yii2-pgsql
Improved PostgreSQL schemas for Yii2
Stars: ✭ 34 (+100%)
Mutual labels:  yii2, yii2-extension
yii2-mailqueue
Yii2 mail queue component for yii2-swiftmailer.
Stars: ✭ 15 (-11.76%)
Mutual labels:  yii2, yii2-extension
yii2-linkable-behavior
Yii2 behavior to help creating urls easier
Stars: ✭ 12 (-29.41%)
Mutual labels:  yii2, yii2-extension
yii2-bankcard-info
ι“Άθ‘Œε‘ε‘ε·εˆ†ζžοΌˆYii2扩展)
Stars: ✭ 15 (-11.76%)
Mutual labels:  yii2, yii2-extension
yii2-newsletter
Module for saving user contacts from newsletter form to database
Stars: ✭ 17 (+0%)
Mutual labels:  yii2, yii2-extension
yii2-vote
Provides voting for any model πŸ‘ πŸ‘Ž
Stars: ✭ 70 (+311.76%)
Mutual labels:  yii2, yii2-extension
yii2-stat
Yii2 Multi Web Statistic Module (yametrika, google-analytic, own db-counter)
Stars: ✭ 18 (+5.88%)
Mutual labels:  yii2, yii2-extension
yii2-ion-slider
Easily customizable range slider with skins support.
Stars: ✭ 21 (+23.53%)
Mutual labels:  yii2, yii2-extension
yii2-translatable
Translatable behavior aggregates logic of linking translations to the primary model
Stars: ✭ 15 (-11.76%)
Mutual labels:  yii2, yii2-extension
behavior-trait
Allows handling events via inline declared methods, which can be added by traits
Stars: ✭ 18 (+5.88%)
Mutual labels:  yii2, yii2-extension
yii2-lets-talk
With this extension you can open chat with someone in popular messengers using the link on your website.
Stars: ✭ 15 (-11.76%)
Mutual labels:  yii2, yii2-extension
content
Content management system for Yii2
Stars: ✭ 54 (+217.65%)
Mutual labels:  yii2, yii2-extension
yii2-jwt-tools
An easy way to configure JWT authentication and validation on Yii Framework 2 Projects
Stars: ✭ 22 (+29.41%)
Mutual labels:  yii2, yii2-extension
yii2-rollbar
Rollbar for Yii2
Stars: ✭ 36 (+111.76%)
Mutual labels:  yii2, yii2-extension

εŒ—ε“₯开源扩展 εŒ—ε“₯开源扩展 εŒ—ε“₯开源扩展

  θΏ™ζ˜―δΈ€ε₯—δΎ›yii2ζ‘†ζžΆδ½Ώη”¨ηš„emoji葨情库。

Install

$ composer require abei2017/yii2-emoji

only used in yii2.

Video

Usage

use abei2017\emoji\Emoji;
Emoji::shortnameToImage('hello:smile:');// hello <img class="emojione" alt="πŸ˜„" title=":smile:" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f604.png">
Emoji::toShort('πŸ˜„'); // :smile:
Emoji::unicodeToImage('πŸ˜„'); // <img class="emojione" alt="πŸ˜„" title=":smile:" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f604.png">
Emoji::toImage(':smile:'); // <img class="emojione" alt="πŸ˜„" title=":smile:" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/1f604.png">
Emoji::shortnameToUnicode(':smile:'); // πŸ˜„

Config

// config/web.php
return [
    ...
    'yii2Emoji'=>[
        'emojiSize'=>'32',//32、64、128
    ]
];

Use Behavior (>= v1.1.0)

// in ActiveRecord
use abei2017\emoji\ValBehavior;
public function behaviors(){
     return [
         'hello'=>[
             'class'=>'abei2017\emoji\ValBehavior',
             'valAttribute'=>'content',// no set, default "content"
             'inFunc'=>'toShort'// no set, default "toShort", and you can set "shortnameToUnicode"
         ]
     ];
 }

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].