mailerlite-api-v2-php-sdk
mailerlite-api-v2-php-sdk copied to clipboard
require all necessary psr implementations
the code relies on psr7, psr17 and psr18 implementations to be available, with the discovery.
it no longer uses the php-http httplug interface (which was made obsolete by psr-18). php-http/client-common is also not used in the code.
i tried running the tests locally, but they fail because the tests assume the json is decoded to array, but RestClient::handleResponse does json_decode with false, so creating stdClass objects.
i don't think this has anything to do with the changes i propose. but it would be a good idea to fix the tests.