Download the PHP package remessage/client-bundle without Composer
On this page you can find all versions of the php package remessage/client-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download remessage/client-bundle
More information about remessage/client-bundle
Files in remessage/client-bundle
Package client-bundle
Short Description A Re Message Client Bundle for Symfony
License Apache-2.0
Homepage https://dev.remessage.ru/packages/client-bundle
Informations about the package client-bundle
Re Message Client Bundle
This package provides remessage/client
package features for applications designed via Symfony framework.
Client uses the specific version when sends messages to Core. You cannot change the version of the API used, because this may violate the logic of this package.
Requirements
- PHP 8.1+
- Requirements of
remessage/client
Installation
- You will need Composer to install:
composer require remessage/client-bundle
- Register the bundles in
config/bundles.php
:- RmClientBundle
- RmMessageBundle
- Configure the application authorization (see Authorization)
Authorization
How to get authorization credentials for your application described here.
You have two options for setting authorization credentials: using environment variables and setting credentials directly in the package configuration.
To configure using environment variables, you need to use the symfony/dotenv
package. Set the environment variables RM_APP_ID
andRM_APP_SECRET
in one of the .env
files:
Or in the package config you can set the app_id
and app_secret
properties:
This configuration provides automatic authorization on each request, if the service token is not found in the storage.
If you do not want to authorize your application for each request, you can disable automatic authorization:
This means that the parameters app_id
and app_secret
parameters will be injected in RM\Component\Client\Security\Authenticator\ServiceAuthenticator
service, but the authenticate
method will not be called. So you can call this method when you need.
Otherwise, if you do not need any of these behaviors, you can disable this behavior completely:
All versions of client-bundle with dependencies
remessage/client Version ^0.8.1
remessage/message-bundle Version ^2.2.3
symfony/http-client Version ^6.0
symfony/event-dispatcher Version ^6.0
symfony/framework-bundle Version ^6.0