PHPackages                             libresign/mailpit-client - 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. libresign/mailpit-client

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

libresign/mailpit-client
========================

Mailpit API Client for PHP - Modern replacement for Mailhog

v0.1.1(3mo ago)02.3k↓28.3%1MITPHPPHP ^8.2

Since Feb 3Pushed 3mo agoCompare

[ Source](https://github.com/LibreSign/mailpit-client)[ Packagist](https://packagist.org/packages/libresign/mailpit-client)[ RSS](/packages/libresign-mailpit-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (9)Used By (1)

Mailpit API Client for PHP [![Packagist Version](https://camo.githubusercontent.com/7b6ad206020e54c7e0d10a78e838a8030d9d18ef9650b66511b691010342c62f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696272657369676e2f6d61696c7069742d636c69656e74)](https://camo.githubusercontent.com/7b6ad206020e54c7e0d10a78e838a8030d9d18ef9650b66511b691010342c62f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696272657369676e2f6d61696c7069742d636c69656e74)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#mailpit-api-client-for-php-)

A simple PHP (8.2+) client for [Mailpit](https://mailpit.axllent.org/), the modern replacement for [Mailhog](https://github.com/mailhog/MailHog).

Design Goals
------------

[](#design-goals)

- As little dependencies as possible (PHP-HTTP compliant via HTTPlug)
- Simple single client for Mailpit API
- Integration tests on all endpoints, both happy path and failure paths

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

[](#installation)

This package does not require any specific HTTP client implementation, but is based on [HTTPlug](https://github.com/php-http/httplug), so you can inject your own HTTP client of choice. So you when you install this library make sure you either already have an HTTP client installed, or install one at the same time as installing this library, otherwise installation will fail.

```
composer require libresign/mailpit-client
```

For more information please refer to the [HTTPlug documentation for Library Users](http://docs.php-http.org/en/latest/httplug/users.html).

Usage
-----

[](#usage)

```
