PHP code example of thealgoslingers / personalized-php

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

    

thealgoslingers / personalized-php example snippets



thealgoslingers/PersonalizedContent;

$api_key = 'your_api_key_here';
$pc      = new PersonalizedContent($api_key);
$user_ip = '8.8.8.8';
echo $pc->getContent($user_ip);