Download the PHP package csba92/revx-php without Composer

On this page you can find all versions of the php package csba92/revx-php. 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 revx-php

revx-php

An unofficial, mostly vibe-coded, PHP 8.4+ client for the Revolut X REST API. It covers public market data, authenticated account data, and signed order lifecycle operations without framework dependencies.

Requirements

Installation

Install from Packagist once the repository has been published:

Until then, Composer can install a tagged GitHub release directly. Replace the repository URL with the account that owns revx-php:

For development from a clone:

Quick start

Public market data needs no credentials:

For account data, pass credentials from your application's configuration:

All monetary values are returned by the API as strings. Keep them as strings or use a decimal library; avoid converting them to floats for financial calculations.

Environment configuration

Client::fromEnvironment() reads the following optional variables:

Variable Purpose
REVX_API_KEY Revolut X API key
REVX_PRIVATE_KEY PEM-encoded Ed25519 private key
REVX_PRIVATE_KEY_PATH Path to a PEM key; used when REVX_PRIVATE_KEY is absent
REVX_BASE_URL API host override, useful for controlled test environments
REVX_TIMEOUT Request timeout in seconds; defaults to 30

Use either REVX_PRIVATE_KEY or REVX_PRIVATE_KEY_PATH. The private-key value takes precedence.

Do not commit a .env file or a PEM file. The supplied .gitignore excludes both.

API

Market data

ticker() returns the first ticker object or null when the requested symbol is not returned. The collection methods return the API response unchanged.

Account data

Account endpoints require both an API key and an Ed25519 private key.

List endpoints preserve the exchange's { data, metadata } response shape, including any pagination cursor in metadata.next_cursor.

Trades and fills

All three methods return the response payload from Revolut X. Public and private history include pagination information in metadata.next_cursor when another page is available.

Trading

Trading calls require an authenticated client. Supply your own UUID for every clientOrderId; this is important for safely locating an order when a network reply is lost.

place() sends the configuration object as provided, so it can represent every order type supported by the current Revolut X API. replace() likewise forwards the permitted replacement fields without narrowing the exchange contract.

Authentication

The client signs authenticated requests with Ed25519. The signature covers the exact string specified by Revolut X:

It then sends X-Revx-API-Key, X-Revx-Timestamp, and X-Revx-Signature headers. The private key remains inside your process; it is never sent over the network.

Generate an Ed25519 key pair with OpenSSL, then register its public key in Revolut X before creating an API key:

Treat private.pem and the API key as production secrets. Restrict the key file to its owner and rotate the API key immediately if it is exposed.

Errors

All library exceptions extend Revx\Exception\RevxException.

Scope

This package exposes:

Trading operations send real instructions to the exchange. Validate application inputs, use least-privilege API keys, and treat order placement and cancellation as production-impacting actions.

Testing

The test suite uses an in-memory HTTP transport, so it makes no network calls and needs no real Revolut X credentials.

License

MIT. See LICENSE.


All versions of revx-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
ext-curl Version *
ext-openssl Version *
ext-sodium Version *
ext-json Version *
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 csba92/revx-php contains the following files

Loading the files please wait ...