yordadev / gitodin-php-client

PHP package to interact with GitOdin RESTful API

Home Page:http://gitodin.com/documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a package made for PHP, to interact with the GitOdin RESTful API Network Access Point to send payloads through the network to your client side in real-time!


Getting Started

Installing using Composer

composer require gitodin/php-client

How to use:

Load the Package using Composer

require_once("autoload.php");
use GitOdin\GitOdin;

Load the Package not using Composer (Downloaded from Github)

require_once("GitOdin-php-http/src/GitOdin.php");
use GitOdin\GitOdin;

This will send an Payload to a Specific channel on the specified event.

$GitOdin = GitOdin::summon('*', 'Server', 'Auth Gateway');

$express_response = $GitOdin->send(new Event(
  "channelName",
  "eventName",
  "someData"
));
echo $express_response;

For more Examples check out the /examples folder.


Indepth Documentation

Documentation for GitOdin.com can be found at https://GitOdin.com/documentation

Contributors

About

PHP package to interact with GitOdin RESTful API

http://gitodin.com/documentation

License:MIT License


Languages

Language:PHP 100.0%