newwaybrazil / request-service-php
PHP library using Guzzle base to send request to any services
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- mockery/mockery: ~1.2.0
- phpmd/phpmd: ^2.8
- phpunit/phpunit: ^7.5
- squizlabs/php_codesniffer: 3.2
This package is not auto-updated.
Last update: 2025-02-04 12:29:35 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 newwaybrazil/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!