PHP code example of themusicdev / contact
1. Go to this page and download the library: Download themusicdev/contact 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/ */
themusicdev / contact example snippets
use TheMusicDev\Contact\Lib\ContactIntake;
$result = ContactIntake::intake($this->getRequest());
// $result = ['status' => 'ok'|'spam'|'rejected'|'invalid', 'entity' => Inquiry|null, 'errors' => [field => message]]
'Contact' => [
'honeypot_field' => 'company', // name of the hidden input bots fill
'min_submit_ms' => 500, // faster than this since renderedAt = spam
],