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.
- PHP
- Docker
- MySQL
- FrankenPHP
- Nette Forms
- Docker Compose
-
Clone this repository to your local machine.
-
Open a terminal and navigate to the project directory.
-
Run the following command to build and start the Docker containers:
docker-compose up --build
- App runs on
https://localhost:8092
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 DI
You can see these improvements implemented in one of my older projects: https://github.com/xkrejc70/simple-php-api-webnode.