定制 mhassan654/license-support 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mhassan654/license-support

最新稳定版本:v1.0.1

Composer 安装命令:

composer require mhassan654/license-support

包简介

A few useful reusable support package for Laravelj

README 文档

README

Stable Version Unstable Version Total Downloads License

Support collection for Laravel. This package is standalone and does not require external packages.

Install

Install via Composer:

composer require mhassan654/license-support

Support Classes

IpSupport

Contains methods for working with IP addresses.

use Mhassan654\LicenseSupport\Support\IpSupport;

Method Description Result
isLocalhost Check client is from localhost boolean
getLocalhostPublicIp Get client public IP address if it is localhost null or string
getIP Get client real IP address string
  • The getLocalhostPublicIp method is useful for checking if the client is from localhost. Uses https://api.ipify.org/?format=json endpoint.
  • In laravel native way you can use Request::ip() method but this method is cover all cases. For example cloudflare, nginx, etc. Also see this stackoverflow question.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固