PHPackages                             esplora/auto-login - 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. esplora/auto-login

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

esplora/auto-login
==================

Enables seamless autologin functionality via temporary links, providing convenient and secure access to your application.

1.0.0(2y ago)42.6kMITPHPCI failing

Since Jul 22Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/esplora/auto-login)[ Packagist](https://packagist.org/packages/esplora/auto-login)[ RSS](/packages/esplora-auto-login/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Auto Login for Laravel
======================

[](#auto-login-for-laravel)

The AutoLogin package for Laravel enables seamless autologin functionality via temporary links. Empower your users with convenient access to your application by securely logging them in using time-limited, temporary autologin links.

Installation
------------

[](#installation)

You can install AutoLogin in your project using the Composer package manager:

```
composer require esplora/auto-login
```

Usage
-----

[](#usage)

To get started with the AutoLogin package, follow the steps below:

1. Add the route for autologin in your `routes/web.php` file:

```
use Esplora\AutoLogin\AutoLogin;

AutoLogin::routes();
```

This will register the necessary route for autologin functionality.

2. Create temporary autologin links in your controllers, emails, or other relevant places using the following methods:

```
AutoLogin::to('/path');
// or use named routes
AutoLogin::route('telescope', [
    'active' => '1'
]);
```

These methods will generate temporary links that automatically log in the user. By default, the current authenticated user will be used. However, if the code is executed in the console or in a non-authenticated context, you need to pass the user ID as the second argument:

```
AutoLogin::to('/path', 123);
// or use named routes
AutoLogin::route('telescope', [
    'active' => '1'
], 123);
```

Configuration
-------------

[](#configuration)

The AutoLogin package provides some configuration options to suit your needs. By default, the autologin URL is set to `/autologin`. However, if you have changed this route usage, you can specify the desired URL using the following method:

```
use Esplora\AutoLogin\AutoLogin;

AutoLogin::routes('/your/path/autologin');
```

Additionally, you can specify a Blade template to customize the autologin view. Simply pass the desired template path as the second argument:

```
use Esplora\AutoLogin\AutoLogin;

AutoLogin::routes('/your/path/autologin', 'path.for.your.blade.template');
```

In your custom template, you can access the `link` variable, which contains the autologin URL, and use it as needed.

```

    Redirecting...

      setTimeout(function () {
        window.location.href = "{{ $link }}";
      }, 3000);

    You are being redirected

    You will be redirected to an external page in a few seconds.

      If you are not redirected automatically, please click
      here.

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance44

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

Unknown

Total

1

Last Release

1078d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c47797b11041f37c2eec74b09bc6619c8997467d690797ebad0e6ab7cb232b7?d=identicon)[tabuna](/maintainers/tabuna)

---

Top Contributors

[![tabuna](https://avatars.githubusercontent.com/u/5102591?v=4)](https://github.com/tabuna "tabuna (14 commits)")[![SadElephant](https://avatars.githubusercontent.com/u/7434276?v=4)](https://github.com/SadElephant "SadElephant (2 commits)")

---

Tags

laravelautologinautoauth

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/esplora-auto-login/health.svg)

```
[![Health](https://phpackages.com/badges/esplora-auto-login/health.svg)](https://phpackages.com/packages/esplora-auto-login)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k9](/packages/jeremy379-laravel-openid-connect)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[aurorawebsoftware/aauth

Laravel Aauth

412.1k1](/packages/aurorawebsoftware-aauth)

PHPackages © 2026

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