https://github.com/cspray/http-request-builder
Easily create @amphp Request objects with a fluent API
https://github.com/cspray/http-request-builder
Last synced: 4 months ago
JSON representation
Easily create @amphp Request objects with a fluent API
- Host: GitHub
- URL: https://github.com/cspray/http-request-builder
- Owner: cspray
- License: mit
- Created: 2023-02-11T13:10:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T13:00:49.000Z (about 1 year ago)
- Last Synced: 2025-03-14T20:57:52.971Z (4 months ago)
- Language: PHP
- Size: 126 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Http Request Builder
A library to fluently create [amphp/http-client](https://github.com/amphp/http-client) Request objects.
## Installation
```
composer require cspray/http-request-builder
```## Usage
This library has 1 focused purpose; easily create Requests.
```php
'enthusiastic,positivity,clashing'
])->post('https://api.example.com');\Amp\Http\Client\HttpClientBuilder::buildDefault()->request($request);
```