rvish/emoji 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rvish/emoji

Composer 安装命令:

composer require rvish/emoji

包简介

An Emoji encoder and decoder with browser for Laravel 5 (unified to HTML)

README 文档

README

Latest Version on Packagist Software License Build Status

A simple PHP library for handling Emoji

An emoji encoder/parser for Laravel 5. This will encode and decode html to unified and vice versa. In order to handle emojies in database where you care about light weight things, performance and don't want to use blob data type.

Installation

PHP 5.5+

To get the latest version of rvish Emoji, simply require the project using Composer:

$ composer require rvish/emoji

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require": {
        "rvish/emoji": "*"
    }
}

Once rvish Emoji is installed, you need to register the service provider. Open up config/app.php and

  1. add the Rvish\Emoji\EmojiServiceProvider::class to the providers
  2. add the 'Emoji' => Rvish\Emoji\Facades\Emoji::class to the aliases.

Usage

For encoding to Bytes (UTF-8)

Emoji::encode("Test1 Test2 💡 Test3"); // encoding to Bytes (UTF-8)

For decoding to Native

Emoji::decode("Test1 Test2 \xf0\x9f\x92\xa1 Test3"); // decoding to Native

Contributing

We welcome contributions! If you would like to hack on Emoji, please follow these steps:

  1. Fork this repository
  2. Make your changes
  3. Install the requirements
  4. Submit a pull request after running make check (ensure it does not error!)

Please give us adequate time to review your submission. Thanks!

License

Rvish Emoji is licensed under The MIT License (MIT).

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固