The official CodeIgniter IPFinder Library for the IPFinder.io get details for :
- IP address details
- ASN details
- Firewall details
- IP Address Ranges details
- Domain details
- Domain history details
- Domain list details
- TOKEN details
The recommended way to install composer packages is:
$ composer require ipfinder-io/cakephp-ipfinder
// src/Application.php
public function bootstrap()
{
$this->addPlugin('IPFinderCakePHP');
}
Before of CakePHP 3.7
Plugin::load('IPFinderCakePHP', ['routes' => true]);
$ php bin/cake bake controller Tests
use IPFinderCakePHP\Controller\IpfinderController as ipfinderio;
Create an empty index.ctp file in /src/Template/Tests folder.
<?php
namespace App\Controller;
use App\Controller\AppController;
use IPFinderCakePHP\Controller\IpfinderController as ipfinderio;
class TestsController extends AppController
{
/**
* Index method
*
*/
public function index()
{
$ipfinder = new ipfinderio();
echo "<pre>";
var_dump($ipfinder->Authentication());
echo "<pre>";
}
}
Name | Description |
---|---|
Authentication | Get details for an Your IP address. |
getAddressInfo | Get details for an IP address. e.x(1.1.1.1 ) |
getAsn | Get details for an AS number. e.x(AS1 ) |
getStatus | Get details for an API Token . |
getRanges | Get details for an Organization name. e.x(Telecom Algeria ) |
getFirewall | Get Firewall data e.x(AS1 ,nginx_deny ) |
getDomain | Get Domain IP e.x(google.com ) |
getDomainHistory | Get Domain IP history e.x(google.com ) |
getDomainBy | Get list Domain By ASN, Country,Ranges e.x(DZ,FR ) |
- See the IPFidner documentation.
- See the IPFinder PHP Client Library.