Download the PHP package samkitano/laravel-user-activation without Composer

On this page you can find all versions of the php package samkitano/laravel-user-activation. 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-user-activation

User activation for Laravel 5.2

Latest Version on Packagist Total Downloads

This package implements a simple user verification by email by means of a random token, aka "Activation Code".

Description

The purpose of this package is to take advantage of Laravel's native Registration and Authentication features, by simply running php artisan make:auth and avoid the hassle of writing any aditional routes, controllers and/or views.

Once installed and configured, it will observe the :created event on the user provider model. As soon as a User is created, it will trigger the service provider that will handle the activation process: token creation, sending an activation email, and storage.

The newly registered user will be unable to login, unless a request is made with the proper unique token (activation link).

We will then check if the request is "legit", and, if required by the configuration settings, it's lifetime.

Uniqueness of token is ensured by a random sha256 hash (64 char long).

The user will have the ability to request a new token, in the login form, as long as valid credentials (those used upon registration) are provided; Just in case the user lost his token, for whatever reason. He who never accidentally deleted an email...

The site admin also has an option to receive email notifications of such events: user registered, user activated, and user requested a new token.

All email outputs are queued, for improved performance.

Requirements

-Laravel >= 5.2.X
-PHP >= 5.6

Installation

After creating your Authentication routes and views with php artisan make:auth proceed with installation:

1 - Require with Composer: composer require samkitano/laravel-user-activation

2 - Include the service provider in the 'providers' array within config/app.php.

3 - Publish the package. MUST use the --force option in order to replace default views. Those will be the exact same thing, with just a small session check added.

4 - Run migrations:

5 - Import and Replace Traits in app\Http\Controllers\Auth\AuthController.php

6 - Include attribute 'active' in the $fillable array of your User model.

7 - Check out app\config\user_activation.php to set your own defaults (email address, token lifetime, templates, etc.), and that's it.

DON'T FORGET to configure your mail provider in app\config\mail.php. Otherwise, no emails will be sent whatsoever. Please check out Laravel Mail Documentation for that matter.

Of course, you may want to change the packages's views and email templates, or even the translation file to suit your needs. Feel free to do so.

NOTE - Although not tested, the package should work fine with any user provider other than App\User::class, as long as you add an 'active', boolean, default to 0 field to your users table, and include that attribute in the $fillable array of your model.

License

LaravelUserActivation is open-sourced software licensed under the MIT license.


All versions of laravel-user-activation with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
illuminate/support Version 5.*
illuminate/database Version 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 samkitano/laravel-user-activation contains the following files

Loading the files please wait ....