PHP code example of nowo-tech / otp-input-bundle
1. Go to this page and download the library: Download nowo-tech/otp-input-bundle 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/ */
nowo-tech / otp-input-bundle example snippets
use Nowo\OtpInputBundle\Form\OtpType;
$builder->add('otpCode', OtpType::class, [
'length' => 6,
'numeric_only' => true,
'container_class' => 'd-flex gap-2',
'input_class' => 'form-control text-center',
'gap_class' => 'otp-grid',
]);