leodisarli/disarli-request-service-php

PHP library using Guzzle base to send request to any services

1.4.0 2020-03-07 17:06 UTC

This package is not auto-updated.

Last update: 2024-04-29 12:38:38 UTC


README

PHP library using Guzzle base to send request to any services. Good to use in microservice architecture.

Tech

Promove a simplest way to communicate with other services using the technologies:

  • [Guzzle] - PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.

Installation

Requires PHP 7.1.

The recommended way to install is through Composer.

composer require leodisarli/disarli-request-service-php

Sample

it's a good idea to look in the sample folder to understand how it works. Run the files with PHP

php sample/RequestSample.php
php sample/RequestImageSample.php

Development

Want to contribute? Great!

The project using a simple code in PHP. Make a change in your file and be careful with your updates! Any new code will only be accepted with all viladations.

To ensure that the entire project is fine:

First install the dependences

$ composer install

Second run all validations

$ composer check

Free Software, Hell Yeah!