Download the PHP package betterauth/multimodal-php without Composer

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

BetterAuth Multimodal PHP

Framework-agnostic authentication library for PHP. Session-based, token-based (Paseto V4), or both — works with Symfony, Laravel, or standalone via PDO.

Features

Requirements

Installation

Quick start

Session-based (monolith)

Token-based (API)

Authentication modes

Mode Method Use case
MONOLITH Session + cookie Server-rendered apps (Symfony, Laravel)
API Paseto V4 + refresh token REST APIs, SPAs, mobile apps
HYBRID Both active Web frontend + mobile clients sharing the same backend

OAuth

Supported providers: Google, GitHub, Facebook, Microsoft, Discord, Twitter, Apple.

TOTP two-factor authentication

Magic links

OpenID Connect server

Act as an SSO provider for your own clients:

Supports PKCE (S256 + plain), scopes (openid, profile, email, offline_access), and ID token claims.

Session security

Adaptive risk scoring on every request:

Signal Weight
Device type change (Desktop → Mobile) 30
OS family change 25
Country change 40
Impossible travel (< 1h + different country) 50
IP subnet change 15
Browser family change 15

Thresholds: 0–24 → allow, 25–49 → log, 50–74 → require reauth, 75+ → terminate session.

Multi-tenancy

Plugin system

Built-in hooks: user.created, user.logged_in, user.logged_out, token.created, session.created, oauth.linked.

Storage

All repositories are interface-based. The library ships with 20 PDO implementations that work with any SQL database (SQLite, MySQL, PostgreSQL, MariaDB).

Replace any repository by implementing the corresponding interface:

Interface Purpose
UserRepositoryInterface User CRUD + lookup by email/provider
SessionRepositoryInterface Session lifecycle
RefreshTokenRepositoryInterface Token rotation with atomic consume()
MagicLinkStorageInterface Passwordless tokens
TotpStorageInterface TOTP secrets + backup codes
OAuthClientRepositoryInterface OIDC client credentials
OrganizationRepositoryInterface Multi-tenant organizations

See src/Interfaces/ for the full list (28 interfaces).

Configuration

AuthConfig exposes all settings as constructor parameters with sensible defaults:

Setting Default
Session lifetime 7 days
Session absolute lifetime 30 days
Access token lifetime 1 hour
Refresh token lifetime 30 days
Rate limit max attempts 5
Rate limit decay 300 seconds
Cookie HttpOnly true
Cookie Secure true
Cookie SameSite Lax

Security

Framework integration

This library provides the authentication core. Framework-specific bundles wire it into DI, routing, and middleware:

Framework Package
Symfony betterauth/symfony-bundle

License

MIT


All versions of multimodal-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
ext-openssl Version *
ext-pdo Version *
paragonie/paseto Version ^3.1
psr/cache Version ^3.0
psr/log Version ^3.0
psr/event-dispatcher Version ^1.0
ramsey/uuid Version ^4.7
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 betterauth/multimodal-php contains the following files

Loading the files please wait ...