PHPackages                             yumbnl/laravel-magic-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. yumbnl/laravel-magic-login

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

yumbnl/laravel-magic-login
==========================

Login your Users with a magic link or token

1.2.3(2y ago)091[2 PRs](https://github.com/yumbnl/laravel-magic-login/pulls)MITPHPPHP ^8.1

Since Apr 3Pushed 2y agoCompare

[ Source](https://github.com/yumbnl/laravel-magic-login)[ Packagist](https://packagist.org/packages/yumbnl/laravel-magic-login)[ Docs](https://github.com/yumbnl/laravel-magic-login)[ RSS](/packages/yumbnl-laravel-magic-login/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (13)Versions (9)Used By (0)

Login your Users with a magic link or token
===========================================

[](#login-your-users-with-a-magic-link-or-token)

[![Latest Version on Packagist](https://camo.githubusercontent.com/075ebcc2ffce2916d4a845b9e01c3db4c08da23c2e114598c97e18846c027fa0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79756d626e6c2f6c61726176656c2d6d616769632d6c6f67696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yumbnl/laravel-magic-login)[![GitHub Tests Action Status](https://camo.githubusercontent.com/02d44b419ed7b740742f0302595830fd52ae86297250fc7f8f83554f547dd1d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756d626e6c2f6c61726176656c2d6d616769632d6c6f67696e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/yumbnl/laravel-magic-login/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/eb788dfad3077b365eed9fb3a3227266d2b88c25237d0b334a771c189bde6c9a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756d626e6c2f6c61726176656c2d6d616769632d6c6f67696e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/yumbnl/laravel-magic-login/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/09e76f68cbbab55ae0c86bc4c5aed358b0805ecb9547c750cb29bc6494c20d5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756d626e6c2f6c61726176656c2d6d616769632d6c6f67696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yumbnl/laravel-magic-login)

This package is still in development. It will take care of sending a temp login link / code upon request, to facilitate a passwordless login method. This is my first public package, so I'm sure there's plenty to improve upon!

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

[](#installation)

You can install the package via composer:

```
composer require yumbnl/laravel-magic-login
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-magic-login-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-magic-login-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-magic-login-views"
```

Usage
-----

[](#usage)

Just install en add these to your routes files:

```
// In your web routes, using the guest middleware
Route::MagicLoginWeb();

// In your api routes
Route::MagicLoginApi();
```

Both route macro's accept a string to change the base url for these routes.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [SanderGo](https://github.com/SanderGo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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

Every ~13 days

Total

6

Last Release

1067d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/487f640b23528db61d7e783885b6dc035e1eb76427de920844140980d7811fa6?d=identicon)[yumbnl](/maintainers/yumbnl)

---

Top Contributors

[![SanderGo](https://avatars.githubusercontent.com/u/72132494?v=4)](https://github.com/SanderGo "SanderGo (86 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelyumbnllaravel-magic-login

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/yumbnl-laravel-magic-login/health.svg)

```
[![Health](https://phpackages.com/badges/yumbnl-laravel-magic-login/health.svg)](https://phpackages.com/packages/yumbnl-laravel-magic-login)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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