[EOL, use driesvints/vat-calculator] Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be. Fork of mpociot/vat-calculator, standalone, PHP 7.3+, modernized, with more features.
There should be a timeout option because sometimes VIES is really slow and the default timeout (default_socket_timeout) is 60 sec.
There's an option when creating SoapClient but note this (emphasis mine):
connection_timeout int
Defines a timeout in seconds for the connection to the SOAP service. This option does not define a timeout for services with slow responses. To limit the time to wait for calls to finish the default_socket_timeout configuration option is available.
There should be a timeout option because sometimes VIES is really slow and the default timeout (
default_socket_timeout
) is 60 sec.There's an option when creating
SoapClient
but note this (emphasis mine):See https://github.com/driesvints/vat-calculator/pull/143 for some options how to do that.