src/services/EmojiService.php
public function emojify($str, $nameStartDelimiter=':', $nameEndDelimiter=":", $textStartDelimiter='', $textEndDelimiter='')
	{

		$sets = [
			$this->getShortNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getSnakeNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getConstantNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getCamelNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getTextReplacements($textStartDelimiter, $textEndDelimiter),
		];

		foreach ($sets as $set)
		{
			$str = str_replace(array_keys($set), $set, $str);
		}

		return $str;

	}
public function emojify($str, $nameStartDelimiter=':', $nameEndDelimiter=":", $textStartDelimiter='', $textEndDelimiter='')
	{

		$sets = [
			$this->getShortNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getSnakeNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getConstantNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getCamelNameReplacements($nameStartDelimiter, $nameEndDelimiter),
			$this->getTextReplacements($textStartDelimiter, $textEndDelimiter),
		];

		foreach ($sets as $set)
		{
			$str = str_replace(array_keys($set), $set, $str);
		}

		return $str;

	}
@param $str
@param string $nameStartDelimiter
@param string $nameEndDelimiter
@param string $textStartDelimiter
@param string $textEndDelimiter

@return string The parsed text