2017 © Pedro Peláez
 

library phemoji

PHP Emoji functions and stuff.

image

stichoza/phemoji

PHP Emoji functions and stuff.

  • Monday, November 30, 2015
  • by stichoza
  • Repository
  • 2 Watchers
  • 33 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Phemoji

Latest Stable Version Total Downloads Downloads Month, (*1)

Emojis in PHP :elephant:, (*2)

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* :collision: :gun:, (*3)

Installation

Install this package via Composer., (*4)

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!, (*5)

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

or, (*6)

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., (*7)

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., (*8)

Example:, (*9)

With Phemoji Equivalent PHP
:pencil2:(:capital_abcd:("Hello World!")); printf(strtoupper("Hello World!"));
:page_facing_up:("file.txt"); file_get_contents("file.txt");
:date:('Y-m-d', :alarm_clock:() + :slot_machine:(1000, 2000)); date('Y-m-d', time() + rand(1000, 2000));
:poop:(:bomb:('a', 'Katana!!!')); var_dump(explode('a', 'Katana!!!'));
$x = :+1:; $x = true;

And so on. Take a look at full list in the source of Phemoji.php, (*10)

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., (*11)

The Versions

30/11 2015

dev-master

9999999-dev

PHP Emoji functions and stuff.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

helpers php functions emoji emoticons utilites

28/11 2015

v0.1.1

0.1.1.0

PHP Emoji functions and stuff.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

helpers php functions emoji emoticons utilites

28/11 2015

v0.1.0

0.1.0.0

PHP Emoji functions and stuff.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

helpers php functions emoji emoticons utilites