Used default proxy hostname and port from NTLM_SoapClient class.
Used default proxy hostname and port from NTLM_SoapClient class.

If you need to change those but don't want to change the PHP script, extend the sharepointAPI class and write your own
constructor which have the same parameters, set the values (also others I have added) and call the parent constructor

<?php
class MySharepointAPI extends sharepointAPI {
	public function __construct ($sp_user, $sp_pass, $sp_WSDL, $useNtlm = false) {
		$this->proxyPort = 8090; // Default: 8080
		parent::__construct($sp_user, $sp_pass, $sp_WSDL, $useNtlm);
	}
}

Finally instance your class instead of sharepointAPI!

thybag/PHP-SharePoint-Lists-API