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

ActiveLibrary

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 passing

Since Jul 22Pushed 6mo 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 1mo ago

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 72% of packages

Maintenance47

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

1030d 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 (13 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

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)

PHPackages © 2026

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