Download the PHP package 3slab/vdm-library-http-transport-bundle without Composer

On this page you can find all versions of the php package 3slab/vdm-library-http-transport-bundle. 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 vdm-library-http-transport-bundle

VdmLibrary messenger HTTP transport

Build Status

This symfony messenger extension provides a transport to pull data from a HTTP source.

Installation

Configuration reference

Configuration Description
dsn the url you want to collect (needs to start by http or https)
retry_strategy.max_retries needs to be 0 because http transport does not support this feature
options.method HTTP method to be called
options.http_options options supported on request by the symfony http client
options.http_executor set the id (in the container of services) of a custom http executor to use instead of the DefaultHttpExecutor
options.monitoring.enabled if true, hook up in the vdm library bundle monitoring system to send information about the HTTP response
options.retry.enabled if true, retry an http call in case of error
options.retry.number number of time to retry before stopping with error
options.retry.timeBeforeRetry time in second between each try (multiplied by the current retry number to delay)

HTTP Executor

HTTP executor allows you to customize the behavior of the HTTP transport per transport definition inside your messenger.yaml file. Some example use cases are that the API has a pagination or needs a pre-request for authentication.

If you don't set a custom http_executor option when declaring the transport, the default DefaultHttpExecutor is used which just calls the API using the default Symfony http client with the method and http_options you have configured.

You can override this behavior in your project by providing a class that extends Vdm\Bundle\LibraryBundle\Executor\Http\AbstractHttpExecutor.

There are 2 important things your custom executor needs to do :

Note : thanks to the yield system, you can implement a loop in your execute function and return items once at a time

Note : you can keep state in your custom executor so if it is executed again, adapt your API call

Then references this custom executor in your transport definition in your project messenger.yaml :

Monitoring

If you enable monitoring, it will track the following metrics :


All versions of vdm-library-http-transport-bundle with dependencies

PHP Build Version
Package Version
Requires 3slab/vdm-library-bundle Version ^3.0
symfony/http-client Version ^5.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 3slab/vdm-library-http-transport-bundle contains the following files

Loading the files please wait ....