gitodin/php-client

1.0.2 2018-08-11 03:21 UTC

This package is not auto-updated.

Last update: 2024-05-12 03:35:48 UTC


README

68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3437393638373938353237333530333735372f3437393638383037313839383732363432302f4769746f64696e2e6a7067

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("../vendor/autoload.php"); // Composer Method, Loading by PSR4
use GitOdin\GitOdin;

Load the Package not using Composer (Downloaded from GitHub)

require_once("../src/GitOdin_load.php"); // Manual Load, no PSR4 Autoload
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