PHP code example of codeweird / kulfi-php

1. Go to this page and download the library: Download codeweird/kulfi-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

codeweird / kulfi-php example snippets




use codeweird\Kulfi\Kulfi;

$client = new Kulfi();

$client->connect("API_KEY","APP_NAME","API_ENDPOINT");

$client->push("DATA","CHANNEL_NAME");

//example
$client->push("25","home/Score");

echo $client->pull("CHANNEL_NAME");

//example
echo $client->pull("home/Score");
bash
 composer