Download the PHP package remessage/client without Composer

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

Re Message Client

This package provides an object-oriented client level to interact with Re Message Core. The package architecture inspired by DBAL and Doctrine packages.

Client uses the specific version when sends messages to Core.

Package version Core version PHP Version

Requirements

  1. PHP 8.1+
  2. Any psr/http-client compatible package to send HTTP requests
  3. Any psr/event-dispatcher compatible package

    Configurator for symfony/event-dispatcher included in package

Installation

You will need Composer to install:

composer require remessage/client

Usage

To create an instance of client, you need to choose transport. Now available only HTTP protocol transport. This transport can work with PSR 7, PSR 17, PSR 18 implementation. For example, symfony/http-client. We will use this package as http client in next examples.

Any transport requires message serializer from remessage/message package. You can use RM\Standard\Message\Serializer\ChainMessageSerializer class to pass serializers for each message type.

After creation of transport instance, you can use RM\Component\Client\ClientFactory or RM\Component\Client\ClientConfigurator to create an instance of client. We recommend using the configurator because he has simple settings. Factory has several setters that provide client customization.

In any case, you need to configure the following properties:

Also, you can configure these properties via factory:

Example of creation client with HTTP transport:

Events

The package have some events to allow you to interact and to handle some cases. As example, we provided some event listeners.

Events:

Event listeners:

How to add event listener (for Symfony EventDispatcher):

We recommend registering ALL event listeners provided from the package.

Also, you can overwrite event dispatcher before building:


All versions of client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-mbstring Version *
remessage/message Version ^2.2.0
psr/http-message Version ^1.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/event-dispatcher Version ^1.0
psr/log Version ^3.0
doctrine/collections Version ^1.6
doctrine/annotations Version ^1.10
symfony/config Version ^6.0
symfony/yaml Version ^6.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 remessage/client contains the following files

Loading the files please wait ....