Pinyin
A high-quality solution for converting Chinese to Pinyin
...Memory type, suitable for servers with more memory space, advantages, fast conversion. Small memory type (default), suitable for environments with tight memory, advantages, small memory footprint, conversion is not as fast as memory type. I/O type, suitable for virtual machines with strict memory restrictions. Advantages: very minimal 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.