PHPackages                             ahmedghanem00/tempmail-api-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. [API Development](/categories/api)
4. /
5. ahmedghanem00/tempmail-api-client

ActiveLibrary[API Development](/categories/api)

ahmedghanem00/tempmail-api-client
=================================

An API client for Temp-Mail service ( https://rapidapi.com/Privatix/api/temp-mail )

1.0.7(2y ago)01MITPHPPHP ^8.2

Since Apr 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ahmedghanem00/tempmail-api-client)[ Packagist](https://packagist.org/packages/ahmedghanem00/tempmail-api-client)[ RSS](/packages/ahmedghanem00-tempmail-api-client/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

TempMail API Client
===================

[](#tempmail-api-client)

An API client for Temp-Mail service (  )

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

[](#installation)

```
composer require ahmedghanem00/tempmail-api-client

```

Usage
-----

[](#usage)

#### Client Initialization :

[](#client-initialization-)

```
use ahmedghanem00\TempMailClient\Client;

$client = new Client('YOUR_API_TOKEN');
```

#### Get Available Domains

[](#get-available-domains)

Retrieve a fresh data from the server:

```
$client->retrieveMailDomains();
```

Get the cached domains in the client (Domains are cached when client initialized for the first time)

```
$client->getCachedMailDomains();
```

#### Generate a Random Email

[](#generate-a-random-email)

```
$receiver = $client->generateFullyRandomReceiver();
## OR
$receiver = $client->generateRandomReceiverFromEmailName("my-random-email");

echo $receiver->getFullEmailAddress(); // string "bdmhnjbtyj@nuclene.com" OR "my-random-email@nuclene.com"
echo $receiver->getEmailName(); // string "bdmhnjbtyj" OR "my-random-email"
echo $receiver->getEmailDomain(); // string "nuclene.com"
```

#### Get email messages

[](#get-email-messages)

```
$messages = $receiver->inbox()->retrieveAll();

/* @var $message \ahmedghanem00\TempMailClient\Model\Message */
foreach ($messages as $message) {
    echo $message->getSubject(); // string
    echo $message->getText(); // string

    echo $message->getSenderName(); // string "Joe"
    echo $message->getSenderEmail(); // string

    echo $message->getReceiveTimestamp(); // float
    echo $message->getHtml(); // string
    echo $message->getPreview(); // string

    # Message id
    echo $message->getServiceInternalId(); // string

    /* @var $attachment \ahmedghanem00\TempMailClient\Model\Attachment */
    foreach ($message->getAttachments() as $attachment) {
        echo $attachment->getName(); // string
        echo $attachment->getContentType(); // string
        echo $attachment->getSize(); // int
        echo $attachment->getContent(); // string
    }

}
```

#### Retrieve a Specific Message

[](#retrieve-a-specific-message)

```
$message = $receiver->inbox()->retrieveMessage(MessageId: "dk4kdkmv");
```

#### Delete a Specific Message

[](#delete-a-specific-message)

```
$receiver->inbox()->deleteMessage(MessageId: "dk4kdkmv");
```

LICENSE
-------

[](#license)

Package is licensed under the [MIT License](http://opensource.org/licenses/MIT). For more info, You can take a look at the [License File](LICENSE)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~47 days

Total

2

Last Release

775d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.2

1.0.7PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/124502255?v=4)[Ahmed Ghanem](/maintainers/ahmedghanem00)[@ahmedghanem00](https://github.com/ahmedghanem00)

---

Top Contributors

[![ahmedghanem00](https://avatars.githubusercontent.com/u/124502255?v=4)](https://github.com/ahmedghanem00 "ahmedghanem00 (6 commits)")

---

Tags

api-clientapi-client-phpdisposable-emailphptemporary-emailapi clienttemporary emaildisposable-email

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ahmedghanem00-tempmail-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/ahmedghanem00-tempmail-api-client/health.svg)](https://phpackages.com/packages/ahmedghanem00-tempmail-api-client)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[storyblok/php-management-api-client

Storyblok PHP Client for Management API

1233.5k3](/packages/storyblok-php-management-api-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
