PHP code example of delboy1978uk / bone-contact

1. Go to this page and download the library: Download delboy1978uk/bone-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/ */

    

delboy1978uk / bone-contact example snippets




// use statements here
use Bone\Contact\ContactPackage;

return [
    'packages' => [
        // packages here...,
        ContactPackage::class,
    ],
    // ...
];



return [
    'bone-contact' => [
        'sendThanksEmail' => true,
        'notificationEmailAddress' => '[email protected]',
        'emailLayout' => 'contact::mail-layout',
        'formLayout' => 'layouts::bone',
        'adminLayout' => 'layouts::admin',
        'formClass' => \Bone\Contact\Form\ContactForm::class,
        'entityClass' => \Bone\Contact\Entity\Contact::class,
        'storeInDb' => true,
        'adminPages' => true,
    ],
];

return [
    'views' => [
        // other views here 
        'contact' => 'path/to/replacement/views',
    ],
];