saloon

🤠 Build beautiful API integrations and SDKs with Saloon

MIT License

Downloads
2.4M
Stars
1.8K

Bot releases are visible (Hide)

saloon - Version v0.6.1

Published by Sammyjo20 over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/Sammyjo20/Saloon/compare/v0.6.0...v0.6.1

saloon - Version v0.6.0

Published by Sammyjo20 over 2 years ago

What's Changed

Full Changelog: https://github.com/Sammyjo20/Saloon/compare/v0.5.0...v0.6.0

saloon - Version v0.5.0

Published by Sammyjo20 over 2 years ago

New Features

New Contributors

Full Changelog: https://github.com/Sammyjo20/Saloon/compare/v0.4.1...v0.5.0

saloon - Version v0.4.1

Published by Sammyjo20 over 2 years ago

What's Changed

Full Changelog: https://github.com/Sammyjo20/Saloon/compare/v0.4.0...v0.4.1

saloon - Version v0.4.0 - Mocking 🚀

Published by Sammyjo20 over 2 years ago

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); // 500

Here'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

New Contributors

Full Changelog: https://github.com/Sammyjo20/Saloon/compare/v0.3.1...v0.4.0

saloon - Version v0.3.1

Published by Sammyjo20 over 2 years ago

Fixes

  • Now if you don't provide an endpoint in the request, Saloon won't add a trailing slash to the base url (#6)
  • Moved license file to root directory (#8)
saloon - Version v0.3.0 - Guzzle Handlers 🎉

Published by Sammyjo20 almost 3 years ago

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)
saloon - Version 0.2.0

Published by Sammyjo20 almost 3 years ago

Changes

  • Re-written the way formData and queryParams are processed
  • formData and queryParams can now be added to the base connector
saloon - Version 0.1.0

Published by Sammyjo20 almost 3 years ago

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
saloon - v0.0.4

Published by Sammyjo20 almost 3 years ago

Changes

  • Removed old "Requesti" name
saloon - Added Licenses

Published by Sammyjo20 almost 3 years ago

saloon - v0.0.2

Published by Sammyjo20 almost 3 years ago

  • Fixed composer.json
saloon - Initial Release 🥳

Published by Sammyjo20 almost 3 years ago

🏄‍♀️