Pinyin
A high-quality solution for converting Chinese to Pinyin
... memory consumption. Disadvantages, slow conversion, not as fast as memory conversion, php >= 5.5. Small memory type, load dictionary shards into memory. In-memory, preload all dictionaries into memory. Do not load into memory, open dictionary line by line traversal using file stream and allocate single line memory using php5.5 generator (yield) feature.