How do you use MySQL with ionic? With PHP?

In the projects I’ve been working PHP is used to perform operations with MySQL, but do not like the organization and the problem is that the source files are in the customer’s hosting because they usually pay the hosting to have the database.
It has another way to perform operations without MySQL PHP?