PHP code example of chenkby / ip

1. Go to this page and download the library: Download chenkby/ip library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chenkby / ip example snippets


Ip::query('8.8.8.8');


Array
(
    [country] => 中国
    [province] => 广东
    [city] => 广州
)

bash
$ php composer.phar