2017 © Pedro Peláez
 

library digota-php

php client for digota

image

digota/digota-php

php client for digota

  • Wednesday, August 23, 2017
  • by digota
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Logo, (*1)

Digota - ecommerce microservice

digota-php

php client for digota, (*2)

PREREQUISITES * php >=5.5 * phpize * pecl * phpunit * composer * protoc, (*3)

Install

Composer, (*4)

composer require digota/digota-php
{
    "name": "your project",
    "require": {
      "digota/digota-php": "dev-master"
      }
  }

Example

```php <?php, (*5)

require dirname(FILE).'/vendor/autoload.php';, (*6)

$client = new \Productpb\ProductServiceClient('localhost:3051', [ // send client cert 'credentials' => Grpc\ChannelCredentials::createSsl(file_get_contents(dirname(FILE).'/client.com.pem')) //'credentials' => Grpc\ChannelCredentials::createInsecure() ]);, (*7)

$request = new Productpb\GetRequest(); $request->SetId("e5aae05c-880c-11e7-ba5e-6354e0d1e8c5");, (*8)

// async var_dump($client->Get($request));, (*9)

// sync var_dump($client->Get($request)->wait());, (*10)

The Versions

23/08 2017

dev-master

9999999-dev

php client for digota

  Sources   Download

The Requires