Download the PHP package josiasmontag/laravel-email-verification without Composer

On this page you can find all versions of the php package josiasmontag/laravel-email-verification. 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-email-verification

Build Status Total Downloads Latest Stable Version License

⚠️ Deprecation Warning: This package is deprecated. I recommend using Laravel's built in email verification.

Introduction

The Laravel Email Verification package is built for Laravel 5.4 and later to easily handle a user verification and validate the e-mail. It is inspired by crypto-based password resets and the email verification package by jrean.

Configuration

To get started, use Composer to add the package to your project's dependencies:

composer require josiasmontag/laravel-email-verification

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just register the Lunaweb\EmailVerification\Providers\EmailVerificationServiceProvider in your config/app.php configuration file:

Migration

The table representing the user must be updated with a verified column. This update will be performed by the migrations included with this package.

To run the migrations from this package use the following command:

The package tries to guess your user table by checking what is set in the auth providers users settings. If this key is not found, the default App\User will be used to get the table name.

To customize the migration, publish it with the following command:

User Model

The model representing the User must implement the CanVerifyEmail interface. The package comes with a CanVerifyEmail trait for a quick implementation. You can customize this trait in order to change the activation email.

Register Controller

The package offers a VerifiesEmail trait for your RegisterController. You must update the middleware exception to allow verify routes to be access by authenticated users.

There is no need to override register(). As default, the package listens for the Illuminate\Auth\Events\Registered event and sends the verification mail. You can disable this behavior using the listen_registered_event setting.

Routes

The package adds the following routes.

Middleware

To register the IsEmailVerified middleware add the following to the $routeMiddleware array within the app/Http/Kernel.php file:

Apply the middleware on your routes:

Events

The package emits 2 events:

Resend the verification mail

Using the isEmailVerified Middleware, the following form is shown to the user. It allows the user to correct his email address and resend the verification mail.

Screenshot

You can manually point the user to this form using the showResendVerificationEmailForm route (Default: register/verify/resend).

To programmatically resend the verification mail:

Customize the verification mail

Therefore, override sendEmailVerificationNotification() of your User model. Example:

Customize the resend form

The template can be found in resources/views/vendor/emailverification/resend.blade.php

Customize the messages / localization

The localization files can be found in resources/lang/vendor/emailverification


All versions of laravel-email-verification with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
illuminate/support Version 5.4.*|5.5.*|5.6.*|5.7.*|5.8.*
illuminate/queue Version 5.4.*|5.5.*|5.6.*|5.7.*|5.8.*
illuminate/auth Version 5.4.*|5.5.*|5.6.*|5.7.*|5.8.*
nesbot/carbon Version ^1.20|2.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 josiasmontag/laravel-email-verification contains the following files

Loading the files please wait ....