Download the PHP package mortezamasumi/fb-auth without Composer

On this page you can find all versions of the php package mortezamasumi/fb-auth. 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 fb-auth

FB Auth — Filament Authentication

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A Filament v5 plugin that provides configurable authentication flows for your Laravel admin panel: magic link, email code, mobile SMS code, and username/password. It ships custom login, registration, email verification, and password-reset pages — with rate-limited, OTP-based resend actions and bilingual notifications.


Features


Installation

Publish the config file:

Optionally publish the views:


Configuration


Usage

Register the plugin in a panel

Choose an auth flow

Set AUTH_TYPE in your .env:

Value Flow Login / register Reset password
link Magic link Filament's built-in pages Filament's built-in pages
code Email code OTP page (code sent by email) OTP-based reset pages
mobile Mobile SMS code OTP page (code sent by SMS) OTP-based reset pages
user Username / password Filament's built-in pages disabled

Generate and send codes


Account verification

Filament only enforces verification on a panel that calls ->emailVerification() and when the user model implements Illuminate\Contracts\Auth\MustVerifyEmail. Once both are in place, the plugin swaps the stock verification pages for its own, matching the selected flow:

AUTH_TYPE Verification prompt Code delivery Resend action
link Filament's built-in signed-link page Laravel's default verify email stock resend mail
code OTP input page VerifyCodeNotification (email with the code inline) re-sends the email code
mobile OTP input page VerifyMobileNotification (SMS via fb-sms) re-sends the SMS code
user verification disabled entirely (->emailVerification(null)) — —

Panel wiring

Enable the features you want; the plugin replaces their pages automatically:

Multi-panel apps: every panel that enables ->emailVerification() should also register FbAuthPlugin, otherwise unverified users are sent to Filament's stock "click the link in your email" page instead of the OTP prompt.

Model requirements

How it works

  1. On registration (or via the Resend code action on the prompt page), FbAuth::createCode($user) generates an otp_digits-long code and caches it under otp-{identifier} for otp_expiration seconds. The identifier is the user's mobile for the mobile flow, email otherwise.
  2. The user submits the code on the verification prompt. A correct, unexpired call marks the account verified (markEmailAsVerified()) and fires the standard Illuminate\Auth\Events\Verified event; a wrong or expired code fails validation with a bilingual message and offers resend.
  3. Every submit/resend is rate limited (2 attempts per minute). After verification the user is redirected back to the panel URL.
  4. If you use fb-user's User model, changing the identifier attribute (mobile or email) resets email_verified_at, requiring verification again.

Customizing the pages

Pass your own page classes to the panel methods as usual — the plugin only fills in defaults for anything you have not overridden:

The notifications themselves can be swapped by binding VerifyCodeNotification / VerifyMobileNotification in the container or by publishing and editing the package translations (fb-auth::fb-auth.*).


Support policy

PHP Laravel Filament
8.3 12 5.x

Testing


Contributing

Please see CONTRIBUTING for details.

Security

If you discover a security vulnerability, please review our security policy on how to report it.

Changelog

Please see CHANGELOG for recent changes.


License

The MIT License (MIT). See LICENSE.md for details.


All versions of fb-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ariaieboy/filament-jalali Version ^3.0
filament/filament Version ^5.0
mortezamasumi/fb-essentials Version ^5.0
mortezamasumi/fb-sms Version ^5.0
spatie/laravel-package-tools 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 mortezamasumi/fb-auth contains the following files

Loading the files please wait ...