Cdiscount / API-MarketPlace-SDK-PHP

15 stars 42 forks source link

Better Integration to third party applications #59

Open scott-davidjones opened 4 years ago

scott-davidjones commented 4 years ago

A lot of applications use their own configuration fiels (Laravel, craft etc)

The changes here allow a user to pass in parameters rather than rely on a config file in their vendor directory - which will be overwritten on update. User can pass:

I have added default cURL options but allowed the user to overwrite them due to differences in the preprod and live systems for exampel preprod does not like cURL version 4 and wont work if that is supplied (Version 1 is required).

I have also condensed some (not all) common functionality (AbstractPoint) for easier maintainability.