salient / curler
The curler package of the Salient toolkit
v0.99.65
2024-11-15 09:20 UTC
Requires
- php: >=7.4
- psr/http-client: ^1
- psr/http-message: ^1.1 || ^2
- salient/contracts: v0.99.65
- salient/core: v0.99.65
- salient/http: v0.99.65
- salient/utils: v0.99.65
Provides
- dev-main
- v0.99.65
- v0.99.64
- v0.99.63
- v0.99.62
- v0.99.61
- v0.99.60
- v0.99.59
- v0.99.58
- v0.99.57
- v0.99.56
- v0.99.55
- v0.99.54
- v0.99.53
- v0.99.52
- v0.99.51
- v0.99.50
- v0.99.49
- v0.99.48
- v0.99.47
- v0.99.46
- v0.99.45
- v0.99.44
- v0.99.43
- v0.99.42
- v0.99.41
- v0.99.40
- v0.99.39
- v0.99.38
- v0.99.37
- v0.99.36
- v0.99.35
- v0.99.34
- v0.99.33
- v0.99.32
This package is auto-updated.
Last update: 2024-12-20 03:45:31 UTC
README
The Curler component of the Salient toolkit
salient/curler
provides an HTTP client optimised for exchanging data with
RESTful API endpoints.
- Simple, fluent interface for sending
HEAD
,GET
,POST
,PUT
,PATCH
andDELETE
requests - Flexible query string and payload handling
- Uses generators to iterate over data from endpoints that use pagination
- Response cache for
HEAD
,GET
and optionallyPOST
requests1 - Cookie handling and persistence
- Uses PSR-7 request, response and stream interfaces
- Implements PSR-18 (HTTP Client)
- Behaviour can be customised via stackable middleware
- Generates HTTP Archive (HAR) files for debugging and analysis
<?php $curler = new \Salient\Curler\Curler('https://api.github.com/repos/salient-labs/toolkit/releases/latest'); echo 'Latest release: ' . $curler->get()['tag_name'] . \PHP_EOL;
Documentation
API documentation for salient/curler
tracks the main
branch of
the toolkit's GitHub repository, where further documentation can also
be found.