Simple PHP form that sends form data to an email address.
Form example
- Clone the repository:
git clone git@github.com:boolfalse/php-online-form.git && cd php-online-form- Install dependencies:
composer install-
Setup Mailgun for sending emails.
-
Copy
.env.exampleto.envand set the environment variables:
cp .env.example .env- Run the server:
php -S localhost:8000- Open the browser and go to
http://localhost:8000.