PHP Classes


Recommend this page to a friend!
  Classes of Till Wehowski   IANA Enterprise Numbers Fetcher   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: IANA Enterprise Numbers Fetcher
Fetch and search the IANA PEN List
Author: By
Last change:
Date: 1 year ago
Size: 886 bytes


Class file image Download


Fetch the PEN List from IANA and optionally search in it.


header('Content-Type: text/plain');
$Fetcher = new IanaPenListFetcher();
$result = $Fetcher();
 echo print_r(count($result), true). " Records found\n";
//This should search and find the SAME entry (by email, id, oid, name, org):
 echo print_r($Fetcher(''), true). "\n";
 echo print_r($Fetcher(37553), true). "\n";
 echo print_r($Fetcher(''), true). "\n";
 echo print_r($Fetcher('Wehowski'), true). "\n";
 echo print_r($Fetcher('frdl'), true). "\n";

Optionally with custom configuration:

$Fetcher->setCachelimit(60 * 60);