2017 © Pedro Peláez
 

library ip-checker

Check whether an ip address can be used in a Laravel application

image

hedii/ip-checker

Check whether an ip address can be used in a Laravel application

  • Monday, March 5, 2018
  • by hedii
  • Repository
  • 1 Watchers
  • 0 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

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., (*2)

Table of contents

Installation

Install via composer, (*3)

composer require hedii/ip-checker

Publish and edit the configuration (config/ip-checker.php), (*4)

php artisan vendor:publish --provider="Hedii\IpChecker\IpCheckerServiceProvider" --tag="config"

Usage

Manual check

Run the package command manually, (*5)

php artisan ip:check

Scheduled check

Schedule the package command to check the ip addresses at regular interval., (*6)

To check the ip addresses every hour, edit app/Console/Kernel.php, (*7)

/**
 * 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., (*8)

The Versions

05/03 2018