Download the PHP package kristiansnts/filament-api-login without Composer

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

Filament API Login

Latest Version on Packagist Total Downloads

Token-based authentication for FilamentPHP that authenticates against external APIs without requiring local database users.

Features

Installation

You can install the package via Composer:

Publish the configuration file:

Configuration

1. Environment Variables

Add these variables to your .env file:

2. Authentication Guard

Add the external guard to your config/auth.php:

3. Filament Panel Configuration

Update your Filament Panel Provider to use the external authentication:

Usage

Basic Authentication Flow

  1. User enters credentials on the Filament login page
  2. Package sends credentials to your external API
  3. API validates and returns token + user data
  4. Package stores token and user data in session
  5. User is authenticated and can access Filament

API Response Format

Your external API should return a response in this format:

Customizing API Requests

You can customize the API request by extending the ExternalAuthService:

Then bind your custom service in a service provider:

Customizing User Access Control

Override the canAccessPanel method in your panel configuration:

Configuration Options

The package configuration file includes these options:

Security Considerations

Troubleshooting

Common Issues

  1. API Connection Issues: Check your FILAMENT_API_LOGIN_URL and network connectivity
  2. Authentication Failures: Verify your API response format matches the expected structure
  3. Session Issues: Ensure your session driver is properly configured

Debug Logging

Enable logging in the configuration to debug authentication issues:

Or via environment variable:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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


All versions of filament-api-login with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^10.0|^11.0|^12.0
filament/filament Version ^3.0|^4.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 kristiansnts/filament-api-login contains the following files

Loading the files please wait ...