Documentation

Carrier

Table of Contents

Classes

BucketHandler
A bucket is a section of the data file. It has an ID, length and a byte array of data. Each bucket type has a specific format. This class handles the conversion of bucket data(binary bytes) to actual values.
BucketType
The types of bucket and their associated IDs. The IDs are important and should **NOT** be changed. The API relies on these IDs remaining the same.
ByteReader
This class gets a chunk of binary data (bytes) then the methods are used to read data segments based on the data of data being read from the chunk, the read pointer will advance to the next bytes.
CarrierApi
The main class for the Carrier Identification API. Used to load the data file and to perform lookups using IPv4 addresses. For usage in a Web App it is recommended to use the CarrierApiWeb (CarrierApiWeb.php) class so you don't have to pass the client's IP address manually.
CarrierApiWeb
A small extension to the core CarrierApi to get IP from $_SERVER for current client.
CarrierData
This class is responsible for loading the data file and walking the IPV4 Radix Trie to find the properties for a given User-Agent.
CarrierDataType
Carrier API specific data types. These are used to optimise the data in the data file.

        
On this page

Search results