aist / geolocation
地理位置开发者工具栏
0.1.0
2018-07-28 17:06 UTC
Requires
- php: ^5.6 || ^7.0
- zendframework/zend-eventmanager: ^2.6.2 || ^3.0
- zendframework/zend-modulemanager: ^2.7
- zendframework/zend-mvc: ^2.7 || ^3.0.1
- zendframework/zend-servicemanager: ^2.7.5 || ^3.0.3
- zendframework/zend-session: ^2.7
Requires (Dev)
- malukenho/docheader: ^0.1.5
- mmoreram/php-formatter: ^1.3
- pdepend/pdepend: ^2.5
- php-coveralls/php-coveralls: ^2.1
- phpmd/phpmd: ^2.6
- phpunit/php-code-coverage: ^5.2
- phpunit/phpunit: ^5.7.25 || ^6.4.4 || ^7.1
- squizlabs/php_codesniffer: ^3.0
- symfony/var-dumper: ^3.3
This package is not auto-updated.
Last update: 2024-09-15 04:53:17 UTC
README
安装
通过 composer 安装
$ composer require aist/geolocation
配置
如果你使用 zend-component-installer,它将自动在 modules.config.php 中注册模块
return [
...
'Aist\Geolocation',
...
];
使用
$service = $sm->get(GeolocationService::class);
$location = $service->getLocation();
接口
- \Aist\Geolocation\Adapter\AdapterInterface
- \Aist\Geolocation\Storage\StorageInterface
监听器
- \Aist\Geolocation\Event\LocationListener