承接 stichoza/phemoji 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

stichoza/phemoji

Composer 安装命令:

composer require stichoza/phemoji

包简介

PHP Emoji functions and stuff.

README 文档

README

Latest Stable Version Total Downloads Downloads Month

Emojis in PHP 🐘

Have you ever envied Swift having possibility to use emojis in code? Well, you can use it in PHP too. I mean, it was possible for years. *Shots fired* 💥 🔫

Installation

Install this package via Composer.

composer require stichoza/phemoji

Usage

Getting Started

After you have installed the package, you can just call Phemoji::init() and you're good to go!

\Stichoza\Phemoji\Phemoji::init();

or

namespace App\Http\Controlers\Blabla;

// ...

use Stichoza\Phemoji\Phemoji;

// ...

Phemoji::init();

Note: This will define some constants and functions in global scope. Once called it will be available everywhere. If you're using any PHP framework, it would be more convinient if you call this method somewhere in middleware or routes or any other place you prefer.

Use of emojis

I have not written full docs yet. You can read the source code and you'll get everything what's going on here.

Example:

With Phemoji Equivalent PHP
✏️(🔠("Hello World!")); printf(strtoupper("Hello World!"));
📄("file.txt"); file_get_contents("file.txt");
📅('Y-m-d', ⏰() + 🎰(1000, 2000)); date('Y-m-d', time() + rand(1000, 2000));
💩(💣('a', 'Katana!!!')); var_dump(explode('a', 'Katana!!!'));
$x = 👍; $x = true;

And so on. Take a look at full list in the source of Phemoji.php

Disclaimer

This package is created just for fun. I am not responsible if any emoji from this package will burn your house to the ground or murder your cute little kitten. Btw, if it ever kills a cat, notify me and I'll remove this repo from Github. I mean Octocat is also a cat.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固