Download the PHP package spykapps/filament-passwordless-login without Composer

On this page you can find all versions of the php package spykapps/filament-passwordless-login. 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 filament-passwordless-login

Packagist Version Total Downloads Laravel 12 PHP 8.3 License

Filament Passwordless Login

A highly customizable Filament 4 & 5 plugin for passwordless (magic link) authentication — built on top of spykapps/passwordless-login.

Features

Requirements


Installation

1. Install the packages

This will also install spykapps/passwordless-login as a dependency.

2. Set up the base passwordless-login package

If you haven't already set up the base package, publish and run the migrations:

Important: The passwordless_login_tokens table must exist before using this plugin. If you've already run the migration, skip this step.

3. Add the trait to your User model

4. Register the plugin

That's it! The plugin will replace the login page, register the token resource with widgets.

Already installed? Run the upgrade command

If you're upgrading from a previous version, the base package includes a command to apply new schema changes (such as the failure_url column) to your existing tokens table without recreating it:

The command will:

  1. Ask for your tokens table name (defaults to passwordless_login_tokens, or the value from your config)
  2. Show a disclaimer listing every column it intends to add
  3. Ask for confirmation before touching your database
  4. Add any missing columns — safely skipping ones that already exist

Non-destructive & idempotent — only adds new nullable columns, safe to run multiple times.

5. Publish plugin config (optional)

6. Publish language files (optional)


Plugin Configuration (Full Reference)

All options can be set fluently in the plugin registration:

Configuration Priority

Settings follow this priority order: Plugin fluent API → Config file → Language file → Hardcoded default

Setting Plugin API Config Lang Default
Icon ->loginActionIcon() login_action.icon — heroicon-m-link
Color ->loginActionColor() login_action.color — primary
Slideover ->slideover() login_action.slideover — false
Nav Group ->navigationGroup() — navigation_group Authentication
Nav Label — — navigation_label Magic Links
Mailable ->mailable() — — Base package default
Notification ->notification() — — Base package default
Redirect URL ->redirectUrl() — — filament()->getUrl() → passwordless-login.redirect.on_success
Failure URL ->failureUrl() — — filament()->getLoginUrl() → passwordless-login.redirect.on_failure

Login Page

The plugin extends Filament's native Filament\Pages\Auth\Login — no custom views or Blade templates needed.

The form shows only an email field. On submit, a magic link is sent and the page switches to a "Check your email!" confirmation state.

Default Setup (replaces Filament login)

Keep Password Login Available

Disable (keep default Filament login)

Redirect URLs

By default, the plugin auto-detects redirect URLs from the current Filament panel — no configuration needed in most cases.

URL Default (auto-detected) Description
Redirect URL filament()->getUrl() (e.g. /admin) Where the user goes after clicking the magic link
Failure URL filament()->getLoginUrl() (e.g. /admin/login) Where the user goes when a link is expired, invalid, or used

Override via Plugin

Priority

  1. Plugin fluent API — ->redirectUrl() / ->failureUrl()
  2. Auto-detected — Current Filament panel URL / login URL
  3. Base package config — passwordless-login.redirect.on_success / on_failure

Multi-Panel Setup

Each panel automatically uses its own URLs. No extra configuration needed:

Explicit Per-Panel Redirect

Custom Login Page

Extend the plugin's login page:

Register it:


Login Action

The SendMagicLinkAction can be used in two positions on the login page, or standalone anywhere in your panel.

Position: Email Field Hint

Adds a clickable hint icon next to the email field on the default Filament password login page:

Position: Button After Login Form

Renders a button below the sign-in button on the default Filament password login page:

Customizing the Login Action


Using SendMagicLinkAction Standalone

Use SendMagicLinkAction anywhere in your Filament panel — page headers, table actions, form hint actions:

Page Header Action

Table Row Action

Form Field Hint Action

As a Slide-over


Custom Mailable

Send magic links using your own Mailable class instead of the default:

1. Create your Mailable

2. Create the Blade template

3. Register it in the plugin


Custom Notification

Use your own Laravel Notification class instead of the default:

1. Create your Notification

2. Register it in the plugin

Note: Your notification class receives $url, $expiryMinutes, and $metadata in the constructor — same signature as the base package's default notification.


Token Resource

The plugin registers a full Filament resource for managing magic login tokens at /admin/magic-login-tokens (configurable).

Features

Widgets on Resource Page

The stats and chart widgets are displayed as header widgets on the token list page (not on the dashboard):

Customization


Customizing Navigation via Language Files

Navigation group and label are pulled from language files by default. Publish and edit:

Then edit lang/vendor/filament-passwordless-login/en/filament.php:

Note: The fluent API (->navigationGroup('...')) takes priority over language files when both are set.


Multilingual Support

8 languages included out of the box:

Language Code Example Navigation Group
English en Authentication
Spanish es Autenticación
French fr Authentification
German de Authentifizierung
Dutch nl Authenticatie
Arabic ar المصادقة
Hindi hi प्रमाणीकरण
Portuguese pt Autenticação

All strings are translatable — login page text, action labels, modal headings, resource columns, widget headings, status badges, navigation labels, and filter labels.

Adding a New Language

Create a new file at lang/vendor/filament-passwordless-login/{locale}/filament.php and translate all keys from the English file.


Config File Reference

Published to config/filament-passwordless-login.php:


Base Package Configuration

The Filament plugin uses spykapps/passwordless-login under the hood. Configure the base package in config/passwordless-login.php:

See the spykapps/passwordless-login README for the full list of configuration options.


Complete Setup Examples

Example 1: Magic Link Only (No Password Login)

Example 2: Password Login with Magic Link Hint

Example 3: Password Login with Magic Link Button

Example 4: Full Featured

Example 5: Minimal (Resource Only, No Login Changes)


Enum Reference


Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-passwordless-login with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^4.0|^5.0
spykapps/passwordless-login Version ^1.0
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 spykapps/filament-passwordless-login contains the following files

Loading the files please wait ...