mobilelookup / mobilelookup
library for get location and carrier information via china mobile number
0.0.2
2018-08-06 09:48 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- symfony/cache: ^3.4
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-05-11 18:22:08 UTC
README
Install
composer require mobilelookup/mobilelookup
Library
Library for get location and carrier information via china mobile number
Sample
use MobileLookup\Client\BaifubaoClient;
use MobileLookup\MobileLookupService;
use Symfony\Component\Cache\Simple\FilesystemCache;
require dirname(__DIR__) . '/vendor/autoload.php';
$cache = new FilesystemCache('namespace', 1 * 60 * 60 * 24, dirname(__DIR__) . '/runtime/cache');
$mobileLookupService = new MobileLookupService(new BaifubaoClient($cache));
echo $mobileLookupService->getLocation('13605177123') . PHP_EOL;
echo $mobileLookupService->getCarrier('13605177123') . PHP_EOL;
License
Copyright 2008-2018.
Licensed under the GNU Lesser General Public License, Version 3.0