kiwfy/request-service-php

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


License
GPL-3.0-only

Documentation

PHP Request Service

Latest Version CI Build codecov Total Downloads PRs Welcome

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

Installation

Requires PHP 7.1

The recommended way to install is through Composer.

composer require kiwfy/request-service-php

Sample

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

First you need to building a correct environment to install dependences

docker build -t kiwfy/request-service-php -f contrib/Dockerfile .

Access the container

docker run -v ${PWD}/:/var/www/html -it kiwfy/request-service-php bash

Verify if all dependencies is installed (if need anyelse)

composer install --no-dev --prefer-dist

and run

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

Development

Want to contribute? Great!

The project using a simple code. 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 you need to building a correct environment to install/update all dependences

docker build -t kiwfy/request-service-php -f contrib/Dockerfile .

Access the container

docker run -v ${PWD}/:/var/www/html -it kiwfy/request-service-php bash

Install all dependences

composer install --dev --prefer-dist

Run all validations

composer check

Kiwfy - Open your code, open your mind!