2017 © Pedro Peláez
 

library upchain

image

meatoff/upchain

  • Saturday, June 10, 2017
  • by meatfay
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Upchain-php is modern protocol for communication with microservices through cluster., (*1)

Install

$ composer require meatoff/upchain

Create Service

require_once '../vendor/autoload.php';

use meatoff\upchain\HttpAdapter;
use meatoff\upchain\Service;

$service = new Service(HttpAdapter::class);

$service->input("auth", function ($input, $payload) {
    if($input['email'] == 'email@email.com' && $input['password'] == 'password') {
        $payload['auth_token'] = bin2hex(random_bytes(16));
        $payload['user_id'] = 534;
    }
    return $payload;
});

$service->serve();

Create Cluster

For cluster creation you can use upchain-js., (*2)

The Versions

10/06 2017

dev-master

9999999-dev

  Sources   Download

The Requires

  • php >=5.6.30

 

The Development Requires

by Павел Мясоедов