2017 © Pedro Peláez
 

library client-bridge

Client part of the client-server communications library.

image

eggbe/client-bridge

Client part of the client-server communications library.

  • Sunday, May 27, 2018
  • by eggbe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 41 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Introduction

This is the client part of the lightweight and high-performance library that implements client-to-server and server-to-server communications., (*1)

Requirements

Install

Here's a pretty simple way to start using Eggbe/ClientBridge:, (*2)

Step 1: Use Composer to add Eggbe/ClientBridge in your project:, (*3)

composer require eggbe/client-bridge

Step 2: Create and configure an instance anywhere in your code:, (*4)

$Bridge = new \Eggbe\ClientBridge\Bridge([
    'url' => 'server-url',
    'method' => \Eggbe\ClientBridge\Bridge::RM_POST,
]);

The method option be be one of two possible values: Get or Post. By default it set in Get. Other request methods currently are not allowed here., (*5)

Usage

You have to use the following method to create request with custom parameters and send it:, (*6)

$Bridge->with('custom-parameter-name', 'custom-parameter-value')->send();

Also you could use a more smart syntax if you like it. The following code is identical to the previous:, (*7)

$Bridge->withCustomParameterName('custom-parameter-value')->send();

Unfortunately in now this library is only support the HTTP/HTTPS protocols but we have plans to extend this part of the functionality. We will keep you in touch!, (*8)

License

This package is released under the MIT license., (*9)

The Versions

27/05 2018

dev-master

9999999-dev

Client part of the client-server communications library.

  Sources   Download

MIT

The Requires

 

by hacpaka

lightweight client communication server-to-server high-performance client-to-server