Download the PHP package sunxiaozheng/laravel-ip2address without Composer
On this page you can find all versions of the php package sunxiaozheng/laravel-ip2address. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sunxiaozheng/laravel-ip2address
More information about sunxiaozheng/laravel-ip2address
Files in sunxiaozheng/laravel-ip2address
Download sunxiaozheng/laravel-ip2address
More information about sunxiaozheng/laravel-ip2address
Files in sunxiaozheng/laravel-ip2address
Vendor sunxiaozheng
Package laravel-ip2address
Short Description Get location information based on IP address.
License MIT
Package laravel-ip2address
Short Description Get location information based on IP address.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-ip2address
laravel-ip2address
本插件功能介绍来自百度翻译
Get location information based on IP address
意思是:根据IP地址获取位置信息
- 数据总条数:470264条
- 数据更新日期:2018年10月10日
- 数据库版本:纯真
功能介绍:
- 只需传入一个IP,即可获得该IP所在的省份、城市以及运营商等信息。
- 拒绝使用数据库,减轻服务器压力。
- composer安装管理,方便快捷。
- 数据源为纯真IP数据库,更新、更全、更准确。
- 插件名字不重要,非laravel框架也可以使用,作者是个laravel死忠粉,嘘。
举个栗子
安装
composer require sunxiaozheng/laravel-ip2address
使用
-
非laravel用户
- laravel用户
- 在 app/config/app.php(Laravel 4) 或 config/app.php(Laravel 5.0 - 5.4),或者你自定义配置的 app.php 文件内添加,如果是 Laravel 5.5 ,支持扩展包发现,不需要添加下面的代码
-
Laravel 5.5 不需要添加
- 在项目中使用
Addr::get($ip, $param)
或Addr::get(Request::getClientIp(), $param)
啰嗦一句
有什么新的想法和建议,欢迎提交 issue 或者 Pull Requests 。
License MIT
All versions of laravel-ip2address with dependencies
PHP Build Version
Package Version
No informations.
The package sunxiaozheng/laravel-ip2address contains the following files
Loading the files please wait ....