Skip to content

KianIranian-STDG/iGap-PHP-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRs Welcome GitHub top language GitHub repo size in bytes GNU LESSER GENERAL PUBLIC LICENSE

An official iGap PHP client

Installation

The recommended way to install iGap-PHP-Client is through Composer.

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

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

composer require rooyekhat/igap-php-client

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

You can then later update iGap-PHP-Client using composer:

composer update

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

Quickstart example

Once installed, you can use the following code to send some requests:

$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.

API documentation

iGap API manuals: https://github.com/KianIranian-STDG/iGap-API

Protocol buffers files : https://github.com/KianIranian-STDG/iGap-API/tree/master/app/assets/proto

Partner

Kian Iranian 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.

Licence

iGap-PHP-Client is released under the GNU Lesser General Public License

GNU LESSER GENERAL PUBLIC LICENSE - Version 3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages