Use PHP in Cloud Functions

How do I run PHP code in a cloud function?

Moralis.Cloud.beforeSave("LandTransfers", async function (request) {
  const to = request.object.get("to");
  const from = request.object.get("from");
  //get name
const User = Moralis.Object.extend("User");
const query = new Moralis.Query(User);
query.equalTo("ethAddress", to);
const name = await query.find({useMasterKey:true});

  const nameStr = name[0].get("NAME");

//execute PHP commands using the variable nameStr

Hey @Workings, unfortunately you can’t. The cloud function only uses Javascript at the moment, you can call the cloud function using PHP though using REST API.

Which method would I use to call the cloud function? I cannot find anything like that here:

from there you can call directly web3api by making a http request.

You can also call a cloud function with REST API: