PHPackages                             salient/curler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. salient/curler

ActiveLibrary[HTTP &amp; Networking](/categories/http)

salient/curler
==============

The Curler component of the Salient toolkit

v0.99.81(8mo ago)01721MITPHPPHP &gt;=7.4

Since Jul 20Pushed 5mo agoCompare

[ Source](https://github.com/salient-labs/toolkit-curler)[ Packagist](https://packagist.org/packages/salient/curler)[ RSS](/packages/salient-curler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (51)Used By (1)

salient/curler
==============

[](#salientcurler)

> The Curler component of the [Salient toolkit](https://github.com/salient-labs/toolkit)

 [![Latest Stable Version](https://camo.githubusercontent.com/b978c1049c392d826a98e1793e98d0cfc71599bbd0d2ce65c09d161b8d1f70c0/68747470733a2f2f706f7365722e707567782e6f72672f73616c69656e742f746f6f6c6b69742f76)](https://packagist.org/packages/salient/toolkit) [![License](https://camo.githubusercontent.com/a69dc21b66521958734e54526bc047b3502cfcec0f337643a14479da7c36506d/68747470733a2f2f706f7365722e707567782e6f72672f73616c69656e742f746f6f6c6b69742f6c6963656e7365)](https://packagist.org/packages/salient/toolkit) [![CI Status](https://github.com/salient-labs/toolkit/actions/workflows/ci.yml/badge.svg)](https://github.com/salient-labs/toolkit/actions) [![Code Coverage](https://camo.githubusercontent.com/9cd7526674c8d5a9d2c8f9150467975632309756513e52ece90427cd2ca97203/68747470733a2f2f636f6465636f762e696f2f67682f73616c69656e742d6c6162732f746f6f6c6b69742f67726170682f62616467652e7376673f746f6b656e3d59306c395a6545747249)](https://codecov.io/gh/salient-labs/toolkit)

---

`salient/curler` provides an HTTP client optimised for RESTful API endpoints.

- Simple, fluent interface for sending `HEAD`, `GET`, `POST`, `PUT`, `PATCH` and `DELETE` requests
- Flexible query string and payload handling
- Uses generators to iterate over data from endpoints that use pagination
- Optional response cache for `HEAD`, `GET` and repeatable `POST` requests
- Optional cookie handling and persistence
- Uses [PSR-7](https://www.php-fig.org/psr/psr-7/) request, response and stream interfaces
- Implements [PSR-18 (HTTP Client)](https://www.php-fig.org/psr/psr-18/)
- Behaviour can be customised via stackable middleware
- Generates [HTTP Archive (HAR)](http://www.softwareishard.com/blog/har-12-spec/) files for debugging and analysis

```
