PHP Classes

File: src/examples/test.php

Recommend this page to a friend!
  Classes of The Algoslingers   Personalized PHP   src/examples/test.php   Download  
File: src/examples/test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Personalized PHP
Serve personalized content based on user location
Author: By
Last change:
Date: 4 months ago
Size: 224 bytes
 

Contents

Class file image Download
<?php
require "vendor/autoload.php";

use
thealgoslingers\PersonalizedContent;

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