https://github.com/ishanvyas22/cakephp-vue-contact-form
A simple Contact Form made with CakePHP + Vue.js.
https://github.com/ishanvyas22/cakephp-vue-contact-form
cakephp cakephp4 contact-form vuejs vuejs2
Last synced: 6 months ago
JSON representation
A simple Contact Form made with CakePHP + Vue.js.
- Host: GitHub
- URL: https://github.com/ishanvyas22/cakephp-vue-contact-form
- Owner: ishanvyas22
- Created: 2020-11-27T17:03:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-11T15:41:10.000Z (over 1 year ago)
- Last Synced: 2025-05-19T13:16:12.443Z (10 months ago)
- Topics: cakephp, cakephp4, contact-form, vuejs, vuejs2
- Language: PHP
- Homepage:
- Size: 876 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CakePHP + Vue.js Contact Form
A simple Contact Form made with CakePHP + Vue.js.
## Installation
1. Clone the repo locally
```bash
git clone git@github.com:ishanvyas22/cakephp-vue-contact-form.git
cd cakephp-vue-contact-form
```
2. Install composer dependencies
```bash
composer install
```
3. Copy `.env.example` to `.env`
```bash
cp config/.env.example config/.env
```
Uncomment and set `MAIL_TO`, `MAIL_FROM` and `API_ENDPOINT_SALES` environment variables according to your needs.
4. Start [CakePHP web server](https://book.cakephp.org/4/en/installation.html#development-server) or [create v-host](https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04) to run this app.
All set! Navigate to http://localhost:8765/contact (or http://yourdomain.com/contact if you have created virtual host for this) to see contact form.
## Features
- On successful submit of the "Customer Support", it will send an email to the email which you've set into `MAIL_TO` environment variable, by default it is set to contact@localhost. The from email will be set to `MAIL_FROM` environment variable, by default it is set to noreply@localhost. This will not send an actual email, but it will log the email output into the `logs/email.log` file, to change this behavior you just have to [configure transport](https://book.cakephp.org/4/en/core-libraries/email.html#configuring-transports) into `config/app.php` file.
- On successful submit of the "Sales", it will make an `POST` API request with input data to `API_ENDPOINT_SALES` url which is set into environment variable.
## Built with
- [CakePHP 4.x](https://book.cakephp.org/4/en/intro.html)
- [Vue.js 2.x](https://vuejs.org/v2/guide/)
Made with ❤️ in India 🇮🇳