Contact module in ZF2 to be included into the SunshinePHP main site.
- Zend Framework 2 (latest master)
- Clone this project into your
./vendor/
directory.
-
Add this project in your composer.json:
"require": { "sunshinephp/ssp-contact": "dev-master" }
-
Now tell composer to download SspContact by running the command:
$ php composer.phar update
-
Enabling it in your
application.config.php
file.<?php return array( 'modules' => array( // ... 'SspContact', ), // ... );
-
Ensure to add the needed contacts table to the database using the sql file in data.
-
Also ensure that you create a subdirectory '/public/img/captchas' which will capture all of the captcha images created by the contact form, and make sure it is writable.