Download the PHP package marcohefti/request-network-api-client without Composer

On this page you can find all versions of the php package marcohefti/request-network-api-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 request-network-api-client

Request Network API Client (PHP)

Latest Version Tests PHP Version Total Downloads

PHP client for the Request Network hosted REST API. It mirrors the TypeScript client's surface so WooCommerce and other PHP runtimes can talk to Request without a Node bridge.

Installation

Install via Composer:

Quick start

Minimal example using the static factory:

Why Use This Client?

Instead of manually building HTTP requests and handling errors, this client provides:

Before vs After: See docs/BEFORE-AFTER.md for side-by-side code comparisons showing how this client simplifies common Request Network API operations.

Documentation

What this client covers

Compatibility

Development

Common commands:

See docs/TESTING.md and docs/ARCHITECTURE.md for the full testing strategy, spec sync flow, and domain layout.

Webhooks

The webhook module provides secure signature verification, typed event objects, and PSR-15 middleware:

Features:

See docs/WEBHOOKS.md and examples/webhook-handler-middleware.php for complete webhook integration examples.

Logging & redaction

Pass either a callable (string $event, array $context) => void or a PSR-3 LoggerInterface via RequestClient::create(['logger' => ...]) to receive lifecycle events (request:start, request:response, request:error). When you supply a PSR-3 logger, the client automatically wraps it with Logging\PsrLoggerAdapter, which redacts sensitive fields (API keys, Authorization headers, webhook signatures) via Logging\Redactor before handing context to your logger:

WebhookMiddleware shares the same logger plumbing and emits webhook:verified, webhook:dispatched, and webhook:error events so you can trace webhook flows without leaking secrets.

Testing harness

Unit tests (and downstream consumers) can inject the built-in Testing\FakeHttpAdapter to queue responses and assert requests without rolling bespoke stubs:

See docs/TESTING.md for the full harness (coverage guard, parity scripts, integration plans).

Partner authentication and complete API surface

Server integrations use an API key. Orchestrator management flows send an orchestrator key alone, even when a Client ID is also configured or supplied as a header. Fee-bearing Secure Payment flows retain the paired Client ID and orchestrator key. The client redacts credentials in logs.

The client models both Request hosts explicitly: baseUrl defaults to https://api.request.network and authBaseUrl defaults to https://auth.request.network. The latter is available on $client->config()->authBaseUrl() for an Auth API consumer; it does not silently replace the main API host.

$client->auth() exposes all 26 Auth API operations against authBaseUrl; it uses the same contract-driven execute(operationId, input) shape as $client->operations().

Use operations()->execute() for any current API endpoint not represented by a convenience facade. The operation ID and its path, query, body, and optional headers are taken directly from the generated contract manifest:

Composer scripts

These are also invoked from the workspace validator (see root scripts/validate.sh).


All versions of request-network-api-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
ext-hash Version *
ext-mbstring Version *
opis/json-schema Version ^2.6
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^1.1 || ^2.0 || ^3.0
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 marcohefti/request-network-api-client contains the following files

Loading the files please wait ...