PHP Classes

IANA Enterprise Numbers Fetcher: Fetch and search the IANA PEN List

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 31 This week: 1All time: 11,009 This week: 560Up
Version License PHP version Categories
iana-enterprise-numb 1.0.0MIT/X Consortium ...5Networking, PHP 5, Searching, Web ser...
Description 

Author

This class can fetch and search the IANA PEN List.

It can send an HTTP request to the IANA Web site to retrieve the list of Internet networks, the companies responsible for those networks, the name of the responsible person, and the respective email address.

The list is stored in a cache file to avoid spending time retrieving the list again while the timeout of the cache file does not pass.

The package can also perform searches for names, email addresses, and identifier numbers in the list to return a list of match results for the values searched.

Innovation Award
PHP Programming Innovation award nominee
January 2023
Number 9
The Internet Assigned Numbers Authority (IANA) is responsible for assigning the main numbers used to connect to networks all over the Internet.

One of the types of numbers that it assigns is the numbers of the companies responsible for networks connecting many nodes on the Internet.

This package can retrieve the complete list of companies IANA lists, so PHP developers can search that list for numbers and names of companies responsible for all the Internet network nodes made available in the IANA Enterprise numbers list.


Manuel Lemos
Picture of Till Wehowski
  Performance   Level  
Name: Till Wehowski <contact>
Classes: 30 packages by
Country: Germany Germany
Age: 45
All time rank: 107469 in Germany Germany
Week rank: 416 Up16 in Germany Germany Up
Innovation award
Innovation award
Nominee: 12x

Documentation

iana-enterprise-numbers-fetcher

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

Example

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('till@webfan.de'), true). "\n";
 echo print_r($Fetcher(37553), true). "\n";
 echo print_r($Fetcher('1.3.6.1.4.1.37553'), true). "\n";
 echo print_r($Fetcher('Wehowski'), true). "\n";
 echo print_r($Fetcher('frdl'), true). "\n";

Optionally with custom configuration:

$Fetcher->setRoot('1.3.6.1.4.1');
$Fetcher->setUrl('https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers');
$Fetcher->setCachelimit(60 * 60);
$Fetcher->setCachefile(__DIR__.\DIRECTORY_SEPARATOR.'penlist.php');

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file IanaPenListFetcher.class.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:31
This week:1
All time:11,009
This week:560Up