src/Emoji.php
public function findByAlias($emojiName = null) : string
    {
        if (is_null($emojiName)) {
            throw IsNull::create("Please provide the name of the emoji you are looking for");
        }

        $emoji = strtolower($emojiName);

        if (! array_key_exists($emoji, $this->getEmojis())) {
            throw UnknownEmoji::create($emoji);
        }

        return $this->getEmojis()[$emoji];
    }
public function findByAlias($emojiName = null) : string
    {
        if (is_null($emojiName)) {
            throw IsNull::create("Please provide the name of the emoji you are looking for");
        }

        $emoji = strtolower($emojiName);

        if (! array_key_exists($emoji, $this->getEmojis())) {
            throw UnknownEmoji::create($emoji);
        }

        return $this->getEmojis()[$emoji];
    }
public function findByAlias ( $ emojiName = null ) : string { if ( is_null ( $ emojiName ) ) { throw IsNull :: create ( "Please provide the name of the emoji you are looking for" ) ; } $ emoji = strtolower ( $ emojiName ) ; if ( ! array_key_exists ( $ emoji , $ this -> getEmojis ( ) ) ) { throw UnknownEmoji :: create ( $ emoji ) ; } return $ this -> getEmojis ( ) [ $ emoji ] ; }
Get the emoji  by passing the commonly used emoji name
@param  string $emojiName
@return unicode
@throws \Unicodeveloper\Emoji\Exceptions\IsNull
@throws \Unicodeveloper\Emoji\Exceptions\UnknownUnicode
Get the emoji by passing the commonly used emoji name