Download the PHP package spencer14420/sp-php-email-handler without Composer
On this page you can find all versions of the php package spencer14420/sp-php-email-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download spencer14420/sp-php-email-handler
More information about spencer14420/sp-php-email-handler
Files in spencer14420/sp-php-email-handler
Download spencer14420/sp-php-email-handler
More information about spencer14420/sp-php-email-handler
Files in spencer14420/sp-php-email-handler
Vendor spencer14420
Package sp-php-email-handler
Short Description A server-side PHP handler for contact forms. Handles form submissions, validates user inputs, sends emails to a mailbox, and sends confirmation emails to users.
License MIT
Package sp-php-email-handler
Short Description A server-side PHP handler for contact forms. Handles form submissions, validates user inputs, sends emails to a mailbox, and sends confirmation emails to users.
License MIT
Please rate this library. Is it a good library?
Informations about the package sp-php-email-handler
SP PHP Email Handler
A PHP package for handling contact form submissions. Features include:
- Email delivery: Sends messages to both the recipient mailbox and confirmation emails to the sender.
- Captcha verification: Supports Google reCAPTCHA, Cloudflare Turnstile, or custom captchas.
- CSRF protection: Validates requests using anti-CSRF tokens.
- JSON error responses: Provides standardized error messages with appropriate HTTP status codes.
Requirements
- PHP 7.4 or higher
- A configured
config.phpfile with required variables (see "Configuration" below)
All required libraries are bundled with this package, including:
- PHPMailer for email sending
- spencer14420\SpAntiCsrf for CSRF protection
Installation
-
Install the package via Composer:
- Include the
autoload.phpfile in your project:
Usage
Initialization
Handling Requests
Example Contact Form
Example email-handler.php
Configuration
Create a config.php file with the following variables:
All versions of sp-php-email-handler with dependencies
PHP Build Version
Package Version
The package spencer14420/sp-php-email-handler contains the following files
Loading the files please wait ...