hedii/ip-checker
Composer 安装命令:
composer require hedii/ip-checker
包简介
Check whether an ip address can be used in a Laravel application
README 文档
README
ip-checker
Check whether an ip address can be used in a Laravel application. Receive an email notification when an ip address does not pass the check.
Table of contents
Installation
Install via composer
composer require hedii/ip-checker
Publish and edit the configuration (config/ip-checker.php)
php artisan vendor:publish --provider="Hedii\IpChecker\IpCheckerServiceProvider" --tag="config"
Usage
Manual check
Run the package command manually
php artisan ip:check
Scheduled check
Schedule the package command to check the ip addresses at regular interval.
To check the ip addresses every hour, edit app/Console/Kernel.php
/** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule */ protected function schedule(Schedule $schedule) { $schedule->command('ip:check')->hourly(); }
Testing
composer test
License
hedii/ip-checker is released under the MIT Licence. See the bundled LICENSE file for details.
统计信息
- 总下载量: 81
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-03