Releases: saloonphp/saloon
Releases · saloonphp/saloon
Version v0.5.0
New Features
- Added support to provide your own custom response classes by @yurirnascimento in #17 (Read more here)
New Contributors
- @yurirnascimento made their first contribution in #17
Full Changelog: v0.4.1...v0.5.0
Version v0.4.1
Version v0.4.0 - Mocking 🚀
Mocking for Laravel/SDKs
This release includes mocking for both Laravel and PHP applications. See more in the README. Here's a little snippet:
$mockClient = new SaloonMockClient();
$mockClient->addResponse(new MockResponse($data, 200, $headers));
$mockClient->addResponse(new MockResponse($data, 500, $headers));
$response = (new SaloonRequest)->send($mockClient); // 200
$response = (new SaloonRequest)->send($mockClient); // 500Here's an example of how it could be implemented
$sdk = new ForgeSdk($token, $saloonMockClient);
$sdk->getServers(); // Internally sends $saloonRequest->send($this->mockClient);Other Changes
- Added new HasBody plugin for custom request data like XML.
- Added Macroable trait to SaloonResponse
- Created a AlwaysThrowsOnErrors plugin
- Renamed setConfigVariable to setConfig
- Bug fixes and tidy ups
What's Changed
- Fix typo in readme by @adil62 in #12
- v0.4.0 - Mocking 🚀 by @Sammyjo20 in #13
New Contributors
Full Changelog: v0.3.1...v0.4.0
Version v0.3.1
Version v0.3.0 - Guzzle Handlers 🎉
Changes
- Added support for Guzzle handlers to customise the Guzzle request/response before it is sent out 🔥
- Set the stage for a caching plugin (coming soon...)
- Improved interceptors
- Added "boot" method to request/connector to easily add functionality
Breaking changes
- Removed old interceptors pattern (not documented)
Version 0.2.0
Changes
- Re-written the way formData and queryParams are processed
- formData and queryParams can now be added to the base connector
Version 0.1.0
Changes
- Modified request/response interceptors to use SaloonRequest and SaloonResponse
- Added basic functionality tests
- Updated Request Manager to work better with interceptors
Fixes
- Error handling
v0.0.4
Added Licenses
v0.0.3 License