Download the PHP package nixphp/client without Composer
On this page you can find all versions of the php package nixphp/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nixphp/client
More information about nixphp/client
Files in nixphp/client
Package client
Short Description NixPHP Client Plugin to make simple http requests.
License MIT
Informations about the package client
[!IMPORTANT] NixPHP is now NAF — "Not Another Framework".
This package continues as
naf/client: github.com/nafphp/client · documentation · what changed and how to moveThe old name collided with NixOS down to the shell, where the CLI binary was literally
nix. This repository is archived and receives no further releases;nixphp/clientstays on Packagist so existing installations keep working.Note the plugin type. NAF discovers plugins by the Composer type
naf-plugin. A package still declaringnixphp-pluginis not loaded — silently, with no error.
bash composer require nixphp/client
The plugin is autoloaded automatically.
---
## Usage
### Send a PSR-7 request
The client always returns a standard PSR-7 `ResponseInterface`.
No automatic JSON parsing or response mutation is performed.
---
## Configuration
All options live under the `client` key.
### Notes
* `http_version = auto` lets cURL negotiate the best protocol (usually HTTP/2).
* PHP streams only support HTTP/1.0 and HTTP/1.1 — HTTP/2 requires cURL.
* CA bundles are auto-detected on common Linux distributions.
---
## Testing
The transport abstraction allows **pure unit tests** without real HTTP calls.
This makes the client:
* fast to test
* deterministic
* independent of network state
---
## Design Principles
* The client does **not** parse or decode JSON automatically
* Response bodies are returned exactly as received
* Protocol and transport decisions are explicit
* No global state, no side effects, no surprises
This keeps the client predictable and PSR-18-aligned.
---
## Requirements
* PHP ≥ 8.2
* `nixphp/framework` >= 0.1.0
* `nyholm/psr7` >= 1.0 (used for PSR-7 implementation)
---
## 📄 License
MIT LicenseAll versions of client with dependencies
ext-curl Version *
nixphp/framework Version ^0.1.0
psr/http-client Version ^1.0
nyholm/psr7 Version ^1.8