PHP implementation of Bopomofo object