Download the PHP package uzdevid/conflux-http without Composer

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

Yii

Conflux HTTP


Latest Stable Version Total Downloads

Conflux HTTP — This is a flexible architecture for integration with external HTTP services, built on the basis of the PSR-18 and Guzzle. Each request is made out as a separate class that implements the necessary interfaces, providing readability, testability and expansion.

Requirements

Installation

The package could be installed with Composer:

Quick start

1. Configuration

2. Create request class

3. Send request


Implemented request interfaces

RequestInterface

Mandatory interface, sets the method, path and parser answer:

You can use trait Uzdevid\Conflux\Http\Parser\JsonParser to pars the answers in JSON format

RequestQueryInterface

If you need to send the query parameters or specify them to the URL:

RequestBodyInterface

If you need send body (POST, PUT etc.):

RequestHeadersInterface

Custom headers:

ConvertableBodyInterface

If after parsing the body needs to be converted into an object:


Example with POST request and body:


URL replacement

If the getUrl() contains the placeholders {}, they will be automatically replaced by values from getQueryPath().

Result: GET /users/5


Handle events

You can subscribe to the events of BeforeRequest, AfterRequest and OnThrow using the EventDispatcherInterface from the package yiisoft/event-dispatcher


If you have suggestions or features, open it issue or write Pull Request ✨


All versions of conflux-http with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
guzzlehttp/guzzle Version ^7.9
yiisoft/event-dispatcher Version ^1.1
ext-libxml Version *
ext-simplexml 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 uzdevid/conflux-http contains the following files

Loading the files please wait ....