Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xkrejc70/php-app-safecita
Simple PHP App - Contact Form with Validation
https://github.com/xkrejc70/php-app-safecita
docker-compose frankenphp nette-form pdo-mysql
Last synced: 9 days ago
JSON representation
Simple PHP App - Contact Form with Validation
- Host: GitHub
- URL: https://github.com/xkrejc70/php-app-safecita
- Owner: xkrejc70
- Created: 2025-01-08T10:51:10.000Z (16 days ago)
- Default Branch: master
- Last Pushed: 2025-01-09T20:09:12.000Z (14 days ago)
- Last Synced: 2025-01-09T20:33:41.499Z (14 days ago)
- Topics: docker-compose, frankenphp, nette-form, pdo-mysql
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple PHP Application - Contact Form with Validation
## Overview
This PHP application provides a simple contact form. Upon form submission, it validates the email, website URL, and ensures the email is unique in the database. If all validations pass, the contact is saved to a MySQL database. The application also allows you to view a list of all stored contacts.
## Tech Stack:
- PHP
- Docker
- MySQL
- FrankenPHP
- Nette Forms## Installation and Setup
### Requirements:
- Docker Compose### Steps to Run the Application:
1. Clone this repository to your local machine.
2. Open a terminal and navigate to the project directory.3. Run the following command to build and start the Docker containers:
```bash
docker-compose up --build
```4. App runs on `https://localhost:8092`
## Optional Improvements
Unfortunately, due to time press, I was unable to improve certain aspects of the application. I would:
- Improve frontend UI.
- Implement Doctrine ORM for better database management.
- Add unit tests for custom validation functions.
- proper DIYou can see these improvements implemented in one of my older projects: https://github.com/xkrejc70/simple-php-api-webnode.