Download the PHP package codepunk/activatinator without Composer

On this page you can find all versions of the php package codepunk/activatinator. 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 activatinator

Codepunk Activatinator

Introduction

Codepunk Activatinator is an extension of Laravel's Auth framework that requires users to activate their account via email (or other notification) before being allowed to view any content normally visible to authenticated users.

Activatinator mimics the logic and extendability of the Laravel Auth "Password Reset" functionality. See Laravel's Authentication and Resetting Passwords pages for more information. Many of the customizations provided by Laravel when it comes to resetting passwords are also provided by the Activatinator.

What's with the name?

The over-syllabic "Activatinator" is a shout-out to Heinz Doofenshmirtz, the villain in the "Phineas and Ferb" cartoon series. According to the Phineas and Ferb Wiki, "Doofenshmirtz's schemes and inventions, primarily known as 'Inators,' are plans and devices created by Dr. Heinz Doofenshmirtz as a means of dominating and taking over the Tri-State Area or other locations."

Since coding can often times feel like hatching a brilliant (and sometimes evil) scheme to take over the world, Codepunk borrows Doofenshmirtz's "Inator"-style naming convention.

Install

  1. If you haven't already done so:

    1. Create a new Laravel project:

    2. Update your .env file to point to a valid database and email client.

    3. From within your new project directory, set up the Laravel authentication framework:
  2. Require the Codepunk Activatinator!

    • Via Composer:

    • Manually:

      In the require section of your project's `composer.json' file, add the following:

      (Or whatever the latest version happens to be)

      Then, update your project by executing the following command:

  3. Publish the Activatinator package:

    And choose the Codepunk ActivatinatorServiceProvider option.

  4. Update the database with the required changes:

  5. Make changes to your App\User model:

    • Add the following use statements:

    • Update the following:

      to this:

    • Update the following:

      to this:

    • NOTE: If you are also using Laravel Passport to implement OAuth in your application, then we want the oauth\token endpoint to fail when the user has not yet been authenticated. To implement this behavior, add the Codepunk\Activatinator\Traits\ValidatesForPassport trait to your App\User model (in addition to Passport's HasApiTokens trait as described in the Laravel Passport documentation):
  6. Make changes to app/Http/Controllers/Auth/ForgotPasswordController.php:

    Update the following:

    to this:

  7. Make changes to app/Http/Controllers/Auth/LoginController.php:

    Update the following:

    to this:

  8. Make changes to app/Http/Controllers/Auth/RegisterController.php:

    Update the following:

    to this:

  9. Make changes to resources/views/auth/login.blade.php:

    Find these lines:

    And add the following line in between so it looks like this:

License

Codepunk Activatinator is open-sourced software licensed under the MIT license


All versions of activatinator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
laravel/framework Version >=5.4
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 codepunk/activatinator contains the following files

Loading the files please wait ....