Download the PHP package projectmata/mobile-biometrics without Composer
On this page you can find all versions of the php package projectmata/mobile-biometrics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download projectmata/mobile-biometrics
More information about projectmata/mobile-biometrics
Files in projectmata/mobile-biometrics
Package mobile-biometrics
Short Description Biometric authentication plugin for NativePHP Mobile
License MIT
Informations about the package mobile-biometrics
Projectmata Mobile Biometrics
Biometric authentication plugin for NativePHP Mobile. Exposes fingerprint / Face ID / device-credential authentication to your Laravel + NativePHP app on Android and iOS.
Requirements
- PHP
^8.1 - Laravel
^11.0or^12.0/^13.0 nativephp/mobile- Android:
min_version 33(depends onandroidx.biometric:biometric:1.2.0-alpha05) - iOS:
min_version 18.2
Installation
Laravel auto-discovery registers the service provider and facade automatically — no edits to config/app.php or bootstrap/providers.php needed.
After installing, rebuild the mobile app so NativePHP picks up the new plugin manifest:
Usage
PHP (Laravel)
JavaScript (in-app)
The plugin registers itself on window.NativePHP.Biometrics:
You can also import the module directly if you bundle it:
Bridge methods
| Method | Params | Returns |
|---|---|---|
Biometrics.IsAvailable |
— | { success, available, reason } |
Biometrics.GetTypes |
— | { success, types[] } |
Biometrics.Authenticate |
reason, title, subtitle, negativeButton |
{ success, message } |
Return payloads are whatever the native plugin resolves; at minimum each call returns a success boolean and a message on failure.
Platform notes
- Android — Uses AndroidX Biometric. Requires the device to have a biometric enrolled (or a device credential fallback, depending on config).
- iOS — Uses
LAContext(Touch ID / Face ID). Face ID requiresNSFaceIDUsageDescriptioninInfo.plist; add it to your app'sinfo_plistconfig if you target Face ID devices.
License
MIT