MigratoryData Client API for PHP
Developer's Guide and Reference Manual
This guide includes the following sections:
This client Application Programming Interface (API) library contains all the necessary operation for connecting to a cluster of MigratoryData servers and publishing real-time messages.
A typical API usage is as follows:
Use the method MigratoryDataClient.setEntitlementToken() to assign an entitlement token to the client.
Use the API method MigratoryDataClient.setServers() to specify a list of one or more MigratoryData servers to which the client will connect to. In fact, the client will connect to only one of the MigratoryData servers in this list. But, defining two or more MigratoryData servers is recommended in order to achieve load balancing and failover.
Use the class MigratoryDataMessage to create messages.
Use the API call MigratoryDataPublisher.publish() to publish messages.
Examples built with this API are available in the folder
examples of this API package; start with the README file which explains how to run them.