Download the PHP package pyzit/tempmail without Composer
On this page you can find all versions of the php package pyzit/tempmail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pyzit/tempmail
More information about pyzit/tempmail
Files in pyzit/tempmail
Package tempmail
Short Description Official PHP SDK for the Pyzit disposable email detector API
License MIT
Homepage https://api.pyzit.com
Informations about the package tempmail
◈ What is this?
pyzit/tempmail is the official PHP client for the Pyzit Disposable Email API — a service that detects throwaway, temporary, and fake email addresses in real time.
Works with Laravel, Symfony, WordPress, plain PHP scripts — simple Composer integration.
◈ Table of contents
- Installation
- Quick start
- API tiers
- All methods
- check()
- detailed()
- bulk()
- Response models
- Error handling
- Framework integrations
- Configuration
- Development
◈ Installation
Requirements: PHP 8.1 or higher.
◈ Quick start
Get your API token at temp-mail-detector.pyzit.com.
Important: API tokens now use the prefix
pyzit_live_...(e.g.,pyzit_live_7b19e2f4a5c84d12903456789abcdef0).Tip: Store your token in an environment variable, never hard-code it.
◈ API tiers & quota model
New architecture: Plans determine quota, not endpoint access. Every plan can use all endpoints.
Important:
- Unlimited API keys across all plans
- Token scopes determine access:
tmd:basic(check + bulk),tmd:detailed(detailed),tmd:*(all) - Any user on any plan can create tokens with any scope
◈ All methods
CheckResult ← check(string $email)
The fastest check. One email in, one decision out. Uses simple_quota.
Response shape:
DetailedResult ← detailed(string $email)
Full forensic analysis. DNS records (MX, A, SPF, DMARC), reputation scoring,
domain classification. Uses detailed_quota. Requires tmd:detailed scope.
Response shape:
BulkResult ← bulk(array $emails)
Validate multiple emails in a single API call. Uses simple_quota. Batch size depends on your plan (Free=10, Starter=25, Pro=50, Growth=75, Scale=100).
Response shape:
◈ Response models
All responses are fully typed with PHP 8.1+ type declarations. You get autocomplete, IDE support, and type safety.
◈ Error handling
All SDK errors inherit from PyzitException, so you can catch everything
at one level or be specific.
Recommended pattern — catch specific errors:
Minimal pattern — just block disposables, ignore errors gracefully:
◈ Framework integrations
Laravel
Symfony
WordPress
◈ Configuration
TempMailClient accepts the following options:
| Parameter | Type | Default | Description |
|---|---|---|---|
apiKey |
string |
— | Your Pyzit API token (required) |
baseUrl |
string |
https://api.pyzit.com |
Override for local testing / mocks |
timeout |
int |
5 |
Request timeout in seconds |
maxRetries |
int |
2 |
Retry attempts for 429/5xx errors |
failOpen |
bool |
false |
Return clean result on network errors |
◈ Development
This project uses standard PHP tooling.
Project layout:
◈ Changelog
See CHANGELOG.md.
◈ License
Pyzit
All versions of tempmail with dependencies
ext-curl Version *
ext-json Version *