Download the PHP package migratorydata/migratorydata-client-php without Composer
On this page you can find all versions of the php package migratorydata/migratorydata-client-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download migratorydata/migratorydata-client-php
More information about migratorydata/migratorydata-client-php
Files in migratorydata/migratorydata-client-php
Package migratorydata-client-php
Short Description MigratoryData Client API for PHP
License proprietary
Homepage https://github.com/migratorydata/migratorydata-client-php
Informations about the package migratorydata-client-php
MigratoryData Client for PHP 5.x & 6.x
Below you can find a tutorial and usage example. For more information please refer to MigratoryData Documentation 6.x.
Usage
Install the MigratoryData client library 5.x using composer (MigratoryData client version 5 can be used with MigratoryData Server 5.0.*):
Install the MigratoryData client library 6.x using composer (MigratoryData client version 6 can be used with the MigratoryData server 6.0.1 or later):
Create a MigratoryData client:
Initialize the MigratoryData client:
Publish a message to MigratoryData server:
Example client application
Copy the code below to a file named echo-time-client.php
and run it using the following command:
Example for Client API for PHP V5
The client application connects to the MigratoryData server deployed at localhost:8800
and publishes a message every second on the subject /server/status
.
If you don't have a MigratoryData server installed on your machine but there is docker installed you can run the following command to start MigratoryData server, otherwise you can download and install the latest version for your os from here.
Example for Client API for PHP V6
The client application connects to the MigratoryData server deployed at localhost:8800
and publishes a message every second on the subject /server/status
.
All versions of migratorydata-client-php with dependencies
ext-curl Version *