A small collection of backend experiment assets and a simple PHP contact form demo.
index.php— Landing page that links to the contact form and Power BI assets.contact.php— Contact form that sends emails via the Resend HTTP API using PHPcURL.dockerfile— Docker build configuration for running the app (PHP + Apache).PHPMailer/— Bundled PHPMailer library source underPHPMailer/src/:DSNConfigurator.phpException.phpOAuth.phpOAuthTokenProvider.phpPHPMailer.phpPOP3.phpSMTP.php
projects/— Power BI files and a dashboard PDF (e.g.,PowerBi Project.pbix,powerbi dashboard.pdf).
- Clone the repository and change into it:
git clone https://github.com/devc2255/Research-Backend-Development-Projects.git
cd Research-Backend-Development-Projects- Set the Resend API key (used by
contact.php):
export RESEND_API_KEY="your_resend_api_key_here"- Serve locally with PHP's built-in server:
php -S localhost:8000Then open http://localhost:8000/index.php in your browser.
Build and run the Docker image:
docker build -t research-backend-project .
docker run -p 8080:80 research-backend-projectOpen http://localhost:8080/index.php when running in Docker.
- PHP 8.2 or later
curlextension enabled (used bycontact.php)- Optional: Docker for container runs
contact.phpcurrently uses the Resend API (HTTP) to deliver messages viacURL.- The
PHPMailer/folder is included in the repo but is not required bycontact.phpas provided. - Default recipient in
contact.phpisdev448230@gmail.com— update as needed. - For production, remove debug
display_errors, and store API keys securely (not in code).
This repository does not include a license. Add a LICENSE file to specify terms for reuse.