Download the PHP package coolrist/role-based-email-validator without Composer

On this page you can find all versions of the php package coolrist/role-based-email-validator. 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 role-based-email-validator

Documentation: Coolrist/RoleBasedEmailValidator Package

The Coolrist/RoleBasedEmailValidator package is a Laravel extension that adds a custom validation rule to block role-based email addresses like admin@, info@, support@, etc. It ensures users register with personal email addresses, improving the reliability of your user data and the effectiveness of your communication.


1. Why Use This Package?

In many applications, it's important to make sure each user is uniquely identifiable. This package helps you:


2. Installation

Install it via Composer:

Then, publish the configuration file (optional but recommended):

This creates a config/role_based.php file where you can tweak settings to fit your use case.


3. Configuration

Hereโ€™s what the config file looks like:

The internal list already includes common role-based prefixes like admin, support, info, sales, and more.


4. Usage

Once installed and configured, you can use the not_role_based rule in your Laravel validators:

If a user tries to register with something like [email protected], validation will fail and return: "The email address is role-based."

๐Ÿ’ก This message is customizable in your Laravel language files.


5. Bonus: Rock-Solid Email Validation ๐Ÿ›ก๏ธ

For even stronger email checks, combine this package with Propaganistas/Laravel-Disposable-Email, which blocks temporary email addresses.

Install it:

Then chain the rules like so:

๐Ÿ’ฅ With this combo, you ensure the email is technically valid, not disposable, and not role-based. Only solid, permanent, personal emails get through.


6. Want to Help Us Push This Like a TUF Laptop with an RTX? ๐Ÿš€๐ŸŽฎ

If you want to support the project โ€” with some code, some cash, or just good vibes โ€” reach out! The maintainer's email is in the composer.json file, like a hidden bonus in a well-coded level. ๐Ÿ’Œ

We love stylish commits, fresh ideas, and even dream-desk setup gifs (especially with RGB lighting). Thanks for being here โ€” whether you're a dev, supporter, or just a curious visitor stopping by with good energy. ๐Ÿ’ป๐Ÿ”ฅ



All versions of role-based-email-validator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^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 coolrist/role-based-email-validator contains the following files

Loading the files please wait ...