PHPackages                             jturbide/form-to-email - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. jturbide/form-to-email

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

jturbide/form-to-email
======================

A lightweight PHP 8.4+ library to process form submissions, validate fields, and send structured email notifications with configurable templates and error codes.

124PHPCI passing

Since Nov 19Pushed 5mo agoCompare

[ Source](https://github.com/jturbide/form-to-email)[ Packagist](https://packagist.org/packages/jturbide/form-to-email)[ RSS](/packages/jturbide-form-to-email/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Form to Email
=============

[](#form-to-email)

[![Build Status](https://github.com/jturbide/form-to-email/actions/workflows/main.yml/badge.svg)](https://github.com/jturbide/form-to-email/actions)[![Docs](https://camo.githubusercontent.com/23c375f6d54211b8d833b3ce1580fdfdfd40251c30dd269bae8faf7520e7bd23/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d6f6e6c696e652d737563636573732e737667)](https://github.com/jturbide/form-to-email)[![Downloads](https://camo.githubusercontent.com/f2706d8b21b912ce99cd644e7916b1dafb8439201744f3400be53a66b4864cd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a747572626964652f666f726d2d746f2d656d61696c3f636f6c6f723d626c7565266c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/jturbide/form-to-email)

[![Coverage](https://camo.githubusercontent.com/b3545ae1bcdb4ea486f71f87b43001e82dd21933bc8035d44601706c851265da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e737667)](https://github.com/jturbide/form-to-email)[![Psalm Level](https://camo.githubusercontent.com/4afacb636b6fcb159e30497219e2acf7a125ad48f6f0a14c8cfdfb0005ecc302/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7073616c6d2d6c6576656c253230322d627269676874677265656e2e737667)](https://psalm.dev/)[![PHPStan](https://camo.githubusercontent.com/a0aa75ca2d85af0fc31a80326946fec7c297c53b7395bce383b3416558b104c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230382d627269676874677265656e)](https://phpstan.org/)[![Code Style](https://camo.githubusercontent.com/88796f43286701cea418d9a43a72f4ca39b769304bd5c189e3a73b4e61edf93f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d5053522d2d31322d626c7565)](https://www.php-fig.org/psr/psr-12/)

**A lightweight, extensible PHP 8.4+ library for secure form processing, validation, sanitization, transformation, and structured email delivery.**Built for modern PHP projects with strict typing, predictable pipelines, and framework-agnostic design.

---

🚀 Quick start (tl;dr)
---------------------

[](#-quick-start-tldr)

Install the package:

```
composer require jturbide/form-to-email
```

Create a form definition, create a mailer, and handle a request:

```
