PHP code example of oscarafdev / fonoapi
1. Go to this page and download the library: Download oscarafdev/fonoapi 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/ */
oscarafdev / fonoapi example snippets
use Shakee93\Fonoapi\FonoApi;
oken key here - https://fonoapi.freshpixl.com
$fonoapi = FonoApi::init($apiKey);
try {
$res = $fonoapi::getDevice("i9305"); // the device you need to get details here
foreach ($res as $mobile) {
if (!empty($mobile->DeviceName)) echo "Device : ". $mobile->DeviceName . "<br>";
if (!empty($mobile->Brand)) echo "Brand : ". $mobile->Brand . "<br>";
if (!empty($mobile->cpu)) echo "Cpu : " . $mobile->cpu . "<br>";
if (!empty($mobile->status)) echo "Status : " . $mobile->status . "<br>";
if (!empty($mobile->dimensions)) echo "Dimensions : " . $mobile->dimensions . "<br>";
if (!empty($mobile->_4g_bands)) echo "4g : " .$mobile->_4g_bands . "<br>";
}
} catch (Exception $e) {
echo "ERROR : " . $e->getMessage();
}