Download the PHP package hayrican/ipchecker without Composer

On this page you can find all versions of the php package hayrican/ipchecker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ipchecker

Laravel IP Checker

Latest Stable Version Total Downloads Scrutinizer Code Quality Codacy Badge Build Status Code Intelligence Status License

This package provides restricted access via IP Address to your application.

Installation

To get started, you should add the hayrican/ipchecker Composer dependency to your project:

Service Provider (Laravel Older 5.5)

If you are using later version of Laravel 5.5, you can skip this step.

Register provider on your config/app.php file.

Configuration

You should publish vendor for configuration file.

Driver

The config file is called ipchecker.php. Currently supported drivers are db and file

Default driver is file and ipchecker will use file to record ip addresses. But if you want to use Database for records, migrate table by using

You have to change driver to db before migrate. Otherwise it will not migrate the table.

Route Group Middleware

If your routes has different middleware then these default values you can change them in here. These route middleware need for filtering response of denial access.

Localization

When you call php artisan vendor:publish --tag="ipchecker" command, it will also publish lang file to your resources/lang directory. You can change all fields as you desire.

Package Usage

1.Add Middleware

Add middleware named ipchecker to the route or controller you want to log data

When try to access this route it will check your IP Address. If you ip address is not on the list you will get response

Otherwise you will access to the route.

2.Add IP Address

Up to default config dashboard can be accessible via yourdomain.com/iplists but it is configurable from config file ipchecker.php

If you want to guard this page just change "auth" to true and it require "auth" middleware.

When you enabled auth you could add admin users id to "admin_id" array. If leave "admin_id" array empty, all users can has access to IP Checker dashboard

Also you can change the route prefix of this dashboard. If you change "route_prefix" to "foo" your dashboard will be accessible via yourdomain.com/foo/iplists.

You can add IP Address in here.

Author

Hayri Can BARÇIN
Email: Contact Me

License

This project is licensed under the MIT License - see the License File for details


All versions of ipchecker with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-simplexml Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hayrican/ipchecker contains the following files

Loading the files please wait ....