1. Go to this page and download the library: Download abei2017/yii2-emoji library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// 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"
]
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.