xieshunv/jasmine

According to the IP address, get the city information

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/xieshunv/jasmine

v1.0.3 2020-10-24 08:39 UTC

This package is auto-updated.

Last update: 2025-12-25 00:09:41 UTC


README

composer require xieshunv/jasmine

<?php
    use xieshunv\jasmine\Convertip;
    class test
    {
        public function __construct()
        {
        }
        
        /**
         * @param $ip
         */
        public function getCityInfo($ip)
        {
            $conver = Convertip::getInstance();
            $ipInfo = $conver::getCityByIp($ip);
                    
            var_dump($ipInfo);
        }
    }