PHP code example of thomasdilts / worshiphhn

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/ */

    

thomasdilts / worshiphhn example snippets




return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=YOUR-DATABASE-NAME',
    'username' => 'YOUR-DATABASE-USERNAME',
    'password' => 'YOUR-DATABASE-PASSWORD',
    'charset' => 'utf8',
];

        '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
         ],
        ],

  'adminEmail' => '[email protected]', 
  'senderEmail' => '[email protected]',
  'showWhhnServerOffer' => 'true',

		'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 
			],