Git Product home page Git Product logo

cakephp-ipfinder's Introduction

CakePHP IPFinder Library

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

Installation

The recommended way to install composer packages is:

$ composer require ipfinder-io/cakephp-ipfinder

How to Use

Enable Plugin

// src/Application.php

public function bootstrap()
{
    $this->addPlugin('IPFinderCakePHP');
}

Before of CakePHP 3.7

Plugin::load('IPFinderCakePHP', ['routes' => true]);

Create a TestsController in CakePHP using the below command line

$ php bin/cake bake controller Tests

load the IPFinder library with use

use IPFinderCakePHP\Controller\IpfinderController as ipfinderio;

example

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>";
    }
}

List methods

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)

Other

License

GitHub license

cakephp-ipfinder's People

Stargazers

 avatar

Watchers

 avatar

Forkers

ipfinder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.