intuit / QuickBooks-V3-PHP-SDK

Official PHP SDK for QuickBooks REST API v3.0: https://developer.intuit.com/
Apache License 2.0
246 stars 246 forks source link

[Enhancement] Allow injecting custom http client #514

Open harolato-rentman opened 5 months ago

harolato-rentman commented 5 months ago

Would be useful to have an option to inject your own http client instead of preset default Guzzle client or curl. For example injecting guzzle client where I can implement my custom middleware and logging.

Potentially can create a public method in DataService called setClient which would expect a parameter for \Psr\Http\Client\ClientInterface ?