The String component provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way.
withinboredom/string
Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
PHPMIT