Download the PHP package xultech/laravel-ip-whitelist without Composer

On this page you can find all versions of the php package xultech/laravel-ip-whitelist. 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 laravel-ip-whitelist

Laravel IP Whitelist

A flexible, modern Laravel middleware package to protect your application using configurable IP whitelisting. Supports CIDR blocks, wildcards, exact IPs, and storage via config or database.


✨ Features


📦 Installation

Laravel will auto-discover the service provider and alias.


⚙️ Configuration

Publish the config file:

Or create a custom config/ipwhitelist.php:


🛡️ Usage

Middleware

Add globally in Http\Kernel.php:

For Laravel 11+:

Add to your bootstrap/app.php file:

Apply to a route:

Route Macro

Blade Directive

Facade

Helper


🧩 Using the Model

This package includes a built-in Eloquent model you can use to manage whitelisted IPs via database.

  1. Run the migration: No need to publish anything. The package automatically loads its migration.

    This creates the ip_whitelist_entries table (or your custom name, based on config).

  2. Use the model in your code:

    You do not need to publish the model — it is fully usable directly from the package.

    🛠 Customize the Table Name

    In config/ipwhitelist.php, you can change:

To create a custom table name like:


⚡ Artisan Commands

Command Description
ipwhitelist:add {ip} Add IP to the whitelist
ipwhitelist:remove {ip} Remove IP from the whitelist
ipwhitelist:list List whitelisted IPs

Or, with example usage included directly under: Examples:


🧪 Testing

The package uses Pest and Orchestra Testbench for testing.

Run the test suite:

✅ Requirements / Compatibility

This package is tested across multiple Laravel versions and follows Laravel's release cycle. It works out of the box with both long-term support (LTS) and the latest Laravel versions.

📄 License

This package is open-sourced software licensed under the MIT license.

🤝 Contributing

Contributions are welcome and appreciated!

To contribute:

  1. Fork this repository
  2. Create a new branch for your feature or fix:

  3. Make your changes with clear, descriptive commits
  4. Write or update tests if applicable
  5. Run the test suite to make sure everything passes:

  6. Push your branch:
  7. Open a Pull Request and describe your changes

🧭 Guidelines

Thank you for helping improve Laravel IP Whitelist!

👥 Credits & Authors

Laravel IP Whitelist was crafted with care by Michael Erastus under XulTech as part of our mission to build secure and developer-friendly Laravel tools.

🧑‍💻 Core Maintainer

🤝 Contributors

Special thanks to everyone who provided feedback, reported issues, or helped shape the direction of this package. Your support makes open source better.

If you find this package helpful, consider giving it a ⭐️ on GitHub or sharing it with others in the Laravel community.

For contributions, ideas, or collaborations, feel free to reach out!


All versions of laravel-ip-whitelist with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
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 xultech/laravel-ip-whitelist contains the following files

Loading the files please wait ....