PHPackages                             codepunk/activatinator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. codepunk/activatinator

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

codepunk/activatinator
======================

Package for adding user activation on top of Laravel's 'Auth' framework

v1.3.7(7y ago)054MITPHPPHP &gt;=7.0

Since Jun 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/codepunk/codepunk-php-lib-core-doofenschmirtz-activatinator)[ Packagist](https://packagist.org/packages/codepunk/activatinator)[ RSS](/packages/codepunk-activatinator/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (21)Used By (0)

Codepunk Activatinator
======================

[](#codepunk-activatinator)

Introduction
------------

[](#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](https://laravel.com/docs/authentication)and [Resetting Passwords](https://laravel.com/docs/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?
---------------------

[](#whats-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](http://phineasandferb.wikia.com/wiki/List_of_Doofenshmirtz%27s_schemes_and_inventions), "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
-------

[](#install)

1. If you haven't already done so:

    1. Create a new Laravel project:

        ```
        $ laravel new my_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:

        ```
        $ php artisan make:auth
        ```
2. Require the Codepunk Activatinator!

    - Via Composer:

        ```
        $ composer require codepunk/activatinator
        ```
    - Manually:

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

        ```
        "codepunk/activatinator": "^1.2.1"
        ```

        (Or whatever the latest version happens to be)

        Then, update your project by executing the following command:

        ```
        $ composer update
        ```
3. Publish the Activatinator package:

    ```
    $ php artisan vendor:publish --force
    ```

    And choose the Codepunk ActivatinatorServiceProvider option.
4. Update the database with the required changes:

    ```
    $ php artisan migrate:refresh
    ```
5. Make changes to your `App\User` model:

    - Add the following `use` statements:

        ```
        use Codepunk\Activatinator\Activable;
        use Codepunk\Activatinator\Contracts\Activable as ActivableContract;
        ```
    - Update the following:

        ```
        class User extends Authenticatable
        ```

        to this:

        ```
        class User extends Authenticatable
            implements ActivableContract
        ```
    - Update the following:

        ```
        use Notifiable;
        ```

        to this:

        ```
        use Notifiable, Activable;
        ```
    - **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):

        ```
        use Notifiable, Activable, HasApiTokens, ValidatesForPassport;
        ```
6. Make changes to `app/Http/Controllers/Auth/ForgotPasswordController.php`:

    Update the following:

    ```
    use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
    ```

    to this:

    ```
    use Codepunk\Activatinator\SendsPasswordResetEmails;
    ```
7. Make changes to `app/Http/Controllers/Auth/LoginController.php`:

    Update the following:

    ```
    use Illuminate\Foundation\Auth\AuthenticatesUsers;
    ```

    to this:

    ```
    use Codepunk\Activatinator\AuthenticatesUsers;
    ```
8. Make changes to `app/Http/Controllers/Auth/RegisterController.php`:

    Update the following:

    ```
    use Illuminate\Foundation\Auth\RegistersUsers;
    ```

    to this:

    ```
    use Codepunk\Activatinator\RegistersUsers;
    ```
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:

    ```

        @include('codepunk::activatinator-alerts')

    ```

### License

[](#license)

Codepunk Activatinator is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~0 days

Total

20

Last Release

2562d ago

Major Versions

v0.9 → v1.0.02018-06-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/b4ce3f9f4f515e5d89c6e8645f1e44575440b95e85c4540201baca48919ccd1a?d=identicon)[codepunk](/maintainers/codepunk)

---

Top Contributors

[![slaterama](https://avatars.githubusercontent.com/u/8741817?v=4)](https://github.com/slaterama "slaterama (35 commits)")

---

Tags

laravelauthverificationactivation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codepunk-activatinator/health.svg)

```
[![Health](https://phpackages.com/badges/codepunk-activatinator/health.svg)](https://phpackages.com/packages/codepunk-activatinator)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
