PHPackages                             evilmail/evilmail-php - 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. evilmail/evilmail-php

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

evilmail/evilmail-php
=====================

Official PHP SDK for the EvilMail API

10PHP

Since Mar 17Pushed 1mo agoCompare

[ Source](https://github.com/Evil-Mail/evilmail-php)[ Packagist](https://packagist.org/packages/evilmail/evilmail-php)[ RSS](/packages/evilmail-evilmail-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![EvilMail Logo](https://avatars.githubusercontent.com/u/267867069?v=4) ](https://evilmail.pro)

EvilMail PHP SDK
================

[](#evilmail-php-sdk)

 **Official PHP client library for the [EvilMail](https://evilmail.pro) disposable email API**

 [![Latest Version on Packagist](https://camo.githubusercontent.com/22b59803204f114a392723f888ba581a01505eab57216ea25c7676870cc8d254/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6576696c6d61696c2f6576696c6d61696c2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f723d626c7565)](https://packagist.org/packages/evilmail/evilmail-php) [![PHP Version](https://camo.githubusercontent.com/be92e9fe0678f926950557ae491a2ea1231256b1f61f138530ab7d3eb7e4a238/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6576696c6d61696c2f6576696c6d61696c2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/evilmail/evilmail-php) [![Total Downloads](https://camo.githubusercontent.com/a4ba349e50bb46083d969eb1e6bf65af2a1bd5cb7f7eddb4a194c1e11ad2860c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6576696c6d61696c2f6576696c6d61696c2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f723d677265656e)](https://packagist.org/packages/evilmail/evilmail-php) [![License](https://camo.githubusercontent.com/a72a9244be3b74ba02c79c3602a1d2c948efa857dbd6293fde3ce589691ccc48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6576696c6d61696c2f6576696c6d61696c2d7068702e7376673f7374796c653d666c61742d737175617265)](LICENSE)

 [Installation](#installation) • [Quick Start](#quick-start) • [API Reference](#api-reference) • [Error Handling](#error-handling) • [Documentation](https://evilmail.pro/docs)

---

The **EvilMail PHP SDK** provides a clean, type-safe interface for integrating temporary email, disposable email addresses, email verification, inbox management, and custom domain email services into your PHP applications. Built for PHP 8.1+ with full PSR-12 compliance.

Features
--------

[](#features)

- **Temporary Email** — Create anonymous disposable email addresses with configurable TTL
- **Email Verification Codes** — Automatically extract OTP codes from Google, Facebook, Instagram, TikTok, Discord, Twitter, LinkedIn, iCloud
- **Account Management** — Create, delete, and manage persistent email accounts on custom domains
- **Inbox Access** — Read emails, list messages, fetch full message content (HTML &amp; plain text)
- **Random Email Generator** — Batch create random email accounts with auto-generated passwords
- **Domain Management** — List free, premium, and custom email domains
- **Shortlink Creation** — Generate short URLs for temporary email sessions
- **Temp Email Messages** — Read individual messages from temporary email sessions
- **Typed Exceptions** — Granular error handling with dedicated exception classes
- **Guzzle Powered** — Built on Guzzle HTTP for reliable, configurable HTTP transport

Requirements
------------

[](#requirements)

- PHP 8.1 or later
- [Guzzle](https://docs.guzzlephp.org/) 7.5+
- An EvilMail API key — [Get yours free](https://evilmail.pro)

Installation
------------

[](#installation)

Install via [Composer](https://getcomposer.org/):

```
composer require evilmail/evilmail-php
```

Quick Start
-----------

[](#quick-start)

```
