Coder Social home page Coder Social logo

marivgil / emoji Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spatie/emoji

0.0 2.0 0.0 118 KB

Programatically work with emoji characters in PHP 7

Home Page: https://murze.be/2016/02/using-emoji-in-php/

License: MIT License

PHP 100.00%

emoji's Introduction

Programatically work with emoji characters

Latest Version on Packagist Software License Build Status Quality Score StyleCI Total Downloads

In PHP you can display emoji characters just by typing them:

echo "๐Ÿ˜ƒ";

This package provides some functionality to work with emoji's if your IDE or used font can't render them correctly:

Emoji::grinningFace();

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

The best postcards will get published on the open source page on our website.

Install

You can install the package via composer:

$ composer require spatie/emoji

Usage

The Spatie\Emoji\Emoji-class contains character constants that may be used directly:

Emoji::CHARACTER_GRINNING_FACE;

Or your can use the shorter method by leaving off "character" and using camelCase:

Emoji::grinningFace();

This package contains Full Emoji List v11.0 (emoji without skin-tones) based on https://www.unicode.org/emoji/charts/full-emoji-list.html (retrieval date: 2018-10-16) which include Full Emoji Modifier Sequences v11.0 (emoji with skin-tones) based on https://www.unicode.org/emoji/charts/full-emoji-modifiers.html (retrieval date: 2018-10-16)

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

We are accepting PR's that add characters to the class. Please use this list to look up the unicode value and the name of the character.

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

About Spatie

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

emoji's People

Contributors

alexbowers avatar ellen-merchant avatar freekmurze avatar grahamcampbell avatar hannesvdvreken avatar ian-patel avatar peter279k avatar svenluijten avatar zenginechris avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.