Calling a service module in PHP code

Here is a quick sample to show you how to call an awesome service in PHP file.
Option 1

In the above example, we’re showing how to call a service and pass it variables
Option 2

In the above code, we are checking if a service exists, and then calling the service. The data is set in the global environment variable.

Updated on Jun 19, 2021