Skip to content

sunshinephp/ssp-contact

Repository files navigation

ssp-contact

Contact module in ZF2 to be included into the SunshinePHP main site.

Requirements

Installation

Main Setup

By cloning project

  1. Clone this project into your ./vendor/ directory.

With composer

  1. Add this project in your composer.json:

    "require": {
        "sunshinephp/ssp-contact": "dev-master"
    }
  2. Now tell composer to download SspContact by running the command:

    $ php composer.phar update

Post installation

  1. Enabling it in your application.config.phpfile.

    <?php
    return array(
        'modules' => array(
            // ...
            'SspContact',
        ),
        // ...
    );
  2. Ensure to add the needed contacts table to the database using the sql file in data.

  3. 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.