1. Go to this page and download the library: Download thomasdilts/worshiphhn 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/ */
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
// send all mails to a file by default.
// You have to set 'useFileTransport' to false and configure a transport for the mailer to send real emails.
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'YOUR.HOST', // e.g. smtp.mandrillapp.com or smtp.gmail.com
'username' => 'YOUR-USERNAME',
'password' => 'YOUR-PASSWORD',
'port' => '587', // Port 25 is a very common port too
'encryption' => 'tls', // It is often used, check your provider or mail server specs
],
],
'reCaptcha3' => [
'class' => 'kekaadrenalin\recaptcha3\ReCaptcha',
// you must supply your own keys. Get from "google developer recaptcha v3"
'site_key' => '', // put YOUR.SITE.KEY.FROM.GOOGLE inside the quotes
'secret_key' => '', // put YOUR.SECRET.KEY.FROM.GOOGLE inside the quotes
],
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.