Export Data in PHP

Hi there, I´m a newbie user, then I created a app ( android ) using hybrid javascript stuff + Cordova, ok, it´s working, but how to :

  • The app is running in a smart phone, how do I export to PDF/CSV or Excel, if I need to generate it in my webserver, i have a server :


What i need to install and what i need to reference to execute the correct syntax ?

Thanks in advance !