enkuldes/listing-ip-address 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

enkuldes/listing-ip-address

最新稳定版本:1.0.0

Composer 安装命令:

composer require enkuldes/listing-ip-address

包简介

Whitelisting/Blacklisting IP Address

README 文档

README

Latest Version on Packagist Total Downloads GitHub Actions

This is my very first package that I have to publish. The basic function is to whatever check IP Address of client is being blacklist/whitelist to access the page.

Installation

You can install the package via composer:

composer require enkuldes/listing-ip-address

Export the config file with:

php artisan vendor:publish --provider="EnKuldes\ListingIPAddress\ListingIPAddressServiceProvider" 

And after that add this following line on .ENV file:

# List of IP Address separated by comma (,)
LIST_IP=192.168.0.5,10.194.17.10,127.0.0.1
# How middleware React to List of IP. Either blacklist or whitelist. Default BlackList.
BEHAVIOR=whitelist

Usage

Add middleware to route file, example:

// Add middleware to single route
Route::get('/', 'HomeController@index')->middleware('listing-ip-address');
// Add middleware to group route
Route::middleware(['listing-ip-address'])->group(function () {
	Route::get('/', 'HomeController@index');
};

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email fahmuzaki@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固