Download the PHP package kaoken/laravel-confirmation-email without Composer

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

laravel-confirmation-email

Laravel sends confirmation mail after Auth user first registration, complete registration is done after accessing designated address.

[Travis]() composer version licence laravel version

Table of content

Install

composer:

Setting

Add to config\app.php as follows:

Example of adding to config\auth.php

add 'confirmation' => 'users',.

When the Auth user is users(Make sure Auth user name is table name!)

Command

After execution, the following directories and files are added.

Migration

Migration file 2017_09_14_000001_create_confirmation_users_table.php should be modified as necessary.

Add to kernel

Add it to the schedule method of app\Console\Kernel.php.
This is used to delete users who passed 24 hours after 1st registration.

E-Mail

In the configuration config\auth.php with the above setting, Kaoken\LaravelConfirmation\Mail\ConfirmationMailToUser of email_confirmation is used as a confirmation mail at the time of 1st registration. The template uses views\vendor\confirmation\confirmation.blade.php.

Kaoken\LaravelConfirmation\Mail\RegistrationMailToUser of email_registration is used as a mail informing that the complete registration was done. The template uses views\vendor\confirmation\registration.blade.php. Change according to the specifications of the application.

controller

Example of 1st registration, complete registration, login

Be sure to add $broker.

Route

From the above controller!

Auth Model

Auth user model example Added of Kaoken\LaravelConfirmation\HasConfirmation;

By using the confirmed() method, we decide whether it is a registered user.
When using social login, it is good to incorporate confirmed() so that it can be determined.

Events

See inside the vendor\kaoken\laravel-confirmation-email\src\Events directory!

BeforeCreateUserEvent

Called before the user is created.
Warning: When this event is invoked, a DB transaction related to Auth user creation is in progress.
If you create an exception in the listener, the Auth user creation of the target is immediately rolled back.

BeforeDeleteUsersEvent

Called before deleting expired users.
This is only called if you deleteUserAndToken(true) the method argument to true in Confirmation::broker('hoge')->deleteUserAndToken();.

Warning: When this event is called, the DB transaction associated with expired Auth user deletion is in progress.
If you create an exception with the listener, the target Auth user deletion is immediately rolled back.

CreatedUserEvent

Called after Auth user is created.

ConfirmationEvent

After sending the confirmation mail, An Auth user is created and called.

RegistrationEvent

Called after Auth user complete registration.

License

MIT


All versions of laravel-confirmation-email with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
laravel/framework Version 5.5.*
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 kaoken/laravel-confirmation-email contains the following files

Loading the files please wait ....