PHP code example of incudata-loghy / loghy-php

1. Go to this page and download the library: Download incudata-loghy/loghy-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/ */

    

incudata-loghy / loghy-php example snippets



use Loghy\SDK\Loghy;

$loghy = new Loghy('{YOUR_SITE_CODE}');



$user = $loghy->user($code);

$loghyId = $user->getLoghyId();
$name    = $user->getName();
$email   = $user->getEmail();

$loghy->putUserId('{YOUR_USER_ID}', '{YOUR_LOGHY_ID}');

$ composer