How to rotate text in z-axis?

How to make this kind of perspective rotation? Can you guys pls share the idea about this?