Download the PHP package mischasigtermans/laravel-sift without Composer
On this page you can find all versions of the php package mischasigtermans/laravel-sift. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mischasigtermans/laravel-sift
More information about mischasigtermans/laravel-sift
Files in mischasigtermans/laravel-sift
Package laravel-sift
Short Description Extract and filter common email domains in Laravel.
License MIT
Informations about the package laravel-sift
Sift – Simple Email Domain Extraction & Filtering
Sift is a Laravel package for extracting and filtering email domains. Whether you're handling user registrations, blocking public email providers, or ensuring only business emails are used, Sift makes it simple.
Features
- Domain Extraction → Extracts the domain from any email address.
- Smart Filtering → Automatically detects and filters out public/free email providers.
- Handles Major Providers → Includes Gmail, Yahoo, Outlook, and many more out of the box.
- Customizable → Easily modify the list of common domains in the config file.
- Laravel-Optimized → Designed for seamless integration with Laravel.
Installation
Install Sift via Composer:
Note: Laravel auto-discovers the package, so no manual setup is needed.
To publish the config file:
This creates config/sift.php
, allowing customization of filtered domains.
Usage
Extract an email's domain
Check if a domain is common
Blade Example
Configuration
Modify the common domain list in config/sift.php
after publishing the config:
View the full list of common domains in the configuration file here.
Running Tests
Sift includes lightweight but effective tests using Pest. To run them:
Contributing
Contributions are welcome. If you spot missing providers or have improvements, feel free to:
- Open an issue on GitHub
- Submit a pull request
License
Sift is open-source software licensed under the MIT License.