Download the PHP package gabrielesbaiz/nova-two-factor without Composer

On this page you can find all versions of the php package gabrielesbaiz/nova-two-factor. 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 nova-two-factor

Nova Two-Factor

Two-factor authentication for Laravel Nova 5: authenticator apps, passkeys, email codes and recovery codes, with enforcement policies, step-up re-authentication, trusted devices and admin oversight.

Latest version Downloads Stars Sponsor

📖 Read the documentation →

Installation, every configuration option, a builder that writes your .env, an enforcement simulator, and every screen in both themes.

[!CAUTION] Upgrading from 1.x? Read UPGRADE.md first. 1.x had critical vulnerabilities, including unauthenticated endpoints and TOTP secrets sent to a third-party QR service by default. Treat every 1.x secret as compromised and have users re-enrol.

[!IMPORTANT] A ⭐ costs you nothing and helps other developers find this package. Sponsoring keeps it compatible with every new Laravel release.

What it does

Nova ships two-factor authentication of its own through Laravel Fortify. If authenticator applications and recovery codes for users who opt in are all you need, use it. This package exists for what that cannot do:

Recovery codes are hashed individually, TOTP replay is refused, and QR codes are generated locally — there is no remote code path.

Requirements

Installation

Then add the HasTwoFactorAuthentication trait to your authenticatable models and register NovaTwoFactor::make() in your NovaServiceProvider. Fortify's updatePasswords and twoFactorAuthentication features must stay enabled.

Full installation guide →

Artisan commands

Command Purpose
nova-two-factor:doctor Check the configuration. Non-zero exit on failure.
nova-two-factor:reset {user} Break-glass reset: methods, codes, devices, lockouts, sessions and reminder snooze.
nova-two-factor:prune Remove expired challenges, devices and old audit rows.
nova-two-factor:upgrade Port 1.x data. See UPGRADE.md.

Documentation

Documentation site Everything: install, configure, operate.
DESIGN.md Why the package works the way it does.
UPGRADE.md Upgrading from 1.x. Read before you start.
AGENTS.md For AI assistants installing or configuring this.
SCREENSHOTS.md Every screen, light and dark.
CHANGELOG.md What changed, and when.

Testing

The suite includes a regression test for every vulnerability found in 1.x.

Contributing

Thank you for considering contributing. The guide is in CONTRIBUTING.md.

Security vulnerabilities

Please review SECURITY.md for reporting a vulnerability. Please do not open a public issue.

Credits

Written and maintained by Gabriele Sbaiz.

This package builds on Laravel, Nova, Fortify, web-auth/webauthn-lib, pragmarx/google2fa, bacon/bacon-qr-code, spatie/laravel-package-tools, and the WebAuthn and TOTP specifications.

Support this package

If it is useful to you:

Sponsor on GitHub

Disclaimer

This package is provided as is, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, title and non-infringement. To the fullest extent permitted by applicable law, in no event shall the authors, copyright holders or contributors be liable for any claim, damages or other liability — whether in an action of contract, tort or otherwise — arising from, out of or in connection with this package or its use, including without limitation any direct, indirect, incidental, special, exemplary, consequential or punitive damages, loss of data, loss of profits, business interruption, account lockouts, unauthorised access, or failure of any authentication control.

Two-factor authentication is a security control: whoever deploys it is responsible for it. That responsibility includes, and is not limited to, choosing appropriate configuration, running nova-two-factor:doctor before relying on it, testing enforcement and recovery on your own infrastructure, keeping recovery paths available to your users, meeting whatever regulatory or contractual obligations apply to you, and reviewing the code yourself before putting it in front of an account you cannot afford to lose. Nothing here constitutes security, legal or compliance advice, and no claim is made that this package makes any system, application or organisation secure or compliant with any standard.

Use of this package is entirely at your own risk.

License

MIT. See LICENSE.md. The MIT licence's warranty disclaimer and limitation of liability apply in full, alongside the disclaimer above.


All versions of nova-two-factor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
ext-openssl Version *
bacon/bacon-qr-code Version ^3.0
illuminate/support Version ^11.0|^12.0|^13.0
laravel/fortify Version ^1.25.4
laravel/nova Version ^5.7
pragmarx/google2fa Version ^8.0|^9.0
spatie/laravel-package-tools Version ^1.16
web-auth/webauthn-lib Version ^5.1
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 gabrielesbaiz/nova-two-factor contains the following files

Loading the files please wait ...