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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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 move

The 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/client stays on Packagist so existing installations keep working.

Note the plugin type. NAF discovers plugins by the Composer type naf-plugin. A package still declaring nixphp-plugin is 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 License

All versions of client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-curl Version *
nixphp/framework Version ^0.1.0
psr/http-client Version ^1.0
nyholm/psr7 Version ^1.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nixphp/client contains the following files

Loading the files please wait ...