https://github.com/schlaefer/philecontactform
Contact Form Plugin for PhileCMS
https://github.com/schlaefer/philecontactform
philecms philecms-plugin
Last synced: about 1 year ago
JSON representation
Contact Form Plugin for PhileCMS
- Host: GitHub
- URL: https://github.com/schlaefer/philecontactform
- Owner: Schlaefer
- License: other
- Created: 2015-05-01T07:50:14.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-01T10:28:32.000Z (about 11 years ago)
- Last Synced: 2025-01-31T08:12:56.590Z (over 1 year ago)
- Topics: philecms, philecms-plugin
- Language: PHP
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contact Form Plugin for PhileCMS #
Add a simple contact-form onto a page which sends the form data to an email address.
[Project Home](https://github.com/Schlaefer/phileContactForm)
### 1.1 Installation (composer) ###
```json
"require": {
"siezi/phile-contact-form": "*"
}
```
### 1.2 Installation (Download)
* download this plugin into `plugins/siezi/phileContactForm`
### 2. Activation
After you have installed the plugin you need to activate it. Add the following line to your `/config.php` file:
```php
$config['plugins']['siezi\\phileContactForm'] = ['active' => true];
```
### 3. Start ###
Set the email-address the contact form is send to:
```php
$config['plugins']['siezi\\phileContactForm']['recipient-email'] = 'contact@example.com';
```
Put
```
(contact-form: simple)
```
onto the page where the contact form should be inserted.
### 4. Config ###
See `config.php`.
#### Events ####
##### plugin.siezi.contactForm.send #####
Triggered when the received form data is processed.
By altering the returned `success` parameter allows you to utilize the form data and perform your own action and/or suppress the default (send email).