You can not access class function directly like this.You need to create class object first and then call the function with object variable.
It's better to save class code in a separate file and include it in the above give file at the top to avoid errors.
// $config as array, You need it to set in construct method.check construct method. $config = [ "id" => ENTER_ID, "key" => ENTER_KEY, "decode" => true, //Optional you can leave this ,default is true anyway. ]; $ServerPilot_Obj = New ServerPilot($config); $ServerPilot_Obj->app_create( $name, $sysuserid, $runtime, $domains = array());