PHP code example of smronju / nativephp-biometrics
1. Go to this page and download the library: Download smronju/nativephp-biometrics library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
smronju / nativephp-biometrics example snippets
use Native\Mobile\Facades\Biometrics;
if (Biometrics::prompt()->prompt()) {
// authenticated
}
use Native\Mobile\Events\Biometric\Completed;
Biometrics::prompt()->completed(function (Completed $event) {
if ($event->success) {
// authenticated
}
});
bash
composer vendor:publish --tag=nativephp-plugins-provider
php artisan native:plugin:register smronju/nativephp-biometrics