2017 © Pedro Peláez
 

library igap-php-client

PHP client for iGap messenger

image

rooyekhat/igap-php-client

PHP client for iGap messenger

  • Saturday, June 30, 2018
  • by RooyeKhat
  • Repository
  • 3 Watchers
  • 2 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

PRs Welcome GitHub top language GitHub repo size in bytes GNU LESSER GENERAL PUBLIC LICENSE, (*1)

An official iGap PHP client, (*2)

Installation

The recommended way to install iGap-PHP-Client is through Composer., (*3)

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of iGap-PHP-Client:, (*4)

composer require rooyekhat/igap-php-client

After installing, you need to require Composer's autoloader:, (*5)

require 'vendor/autoload.php';

You can then later update iGap-PHP-Client using composer:, (*6)

bash composer update, (*7)

protobuf module is required , follow https://github.com/google/protobuf/tree/master/php, (*8)

Quickstart example

Once installed, you can use the following code to send some requests:, (*9)

$loop = React\EventLoop\Factory::create();
$connector = new React\Socket\Connector($loop, [
    'dns' => '8.8.8.8',
    'timeout' => 10
]);

iGap\Api::init($loop, $connector);

$userRegister = new \Proto\UserRegister();
$userRegister->setCountryCode('IR');
$userRegister->setPhoneNumber('912xxxxxxx');

iGap\Api::getInstance()->invoke(
    iGap\Api::ACTION_USER_REGISTER,
    $userRegister
);

$loop->run();

See also the examples., (*10)

API documentation

iGap API manuals: https://github.com/RooyeKhat-Media/iGap-API, (*11)

Protocol buffers files : https://github.com/RooyeKhat-Media/iGap-API/tree/master/app/assets/proto, (*12)

Partner

RooyeKhat Media was founded in 2015 aiming to create communicative and informative platforms supported by Internet and network on the basis of modern technology. We focus on the fields of designing, programming, supporting communicative and media software on mobile phones and tablets., (*13)

Licence

iGap-PHP-Client is released under the GNU Lesser General Public License, (*14)

GNU LESSER GENERAL PUBLIC LICENSE - Version 3, (*15)

The Versions

30/06 2018

dev-master

9999999-dev

PHP client for iGap messenger

  Sources   Download

LGPL-3.0-only

The Requires

 

by Asghar Amerehi

30/06 2018

1.0.4

1.0.4.0

PHP client for iGap messenger

  Sources   Download

LGPL-3.0-only

The Requires

 

by Asghar Amerehi

30/06 2018

1.0.3

1.0.3.0

PHP client for iGap messenger

  Sources   Download

The Requires

 

by Asghar Amerehi

12/06 2018

1.0.2

1.0.2.0

PHP client for iGap messenger

  Sources   Download

LGPL-3.0-only

The Requires

 

by Asghar Amerehi

12/06 2018

1.0.1

1.0.1.0

PHP client for iGap messenger

  Sources   Download

The Requires

 

by Asghar Amerehi

12/06 2018

1.0.0

1.0.0.0

PHP client for iGap messenger

  Sources   Download

The Requires

 

by Asghar Amerehi