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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tempmail

**The official PHP SDK for the [Pyzit Disposable Email Detector API](https://temp-mail-detector.pyzit.com)** Stop fake signups. Block throwaway addresses. Protect your platform. [![Latest Stable Version](https://img.shields.io/packagist/v/pyzit/tempmail?color=1D9E75&labelColor=0f0f0f&style=flat-square)](https://packagist.org/packages/pyzit/tempmail) [![PHP Version](https://img.shields.io/packagist/php-v/pyzit/tempmail?color=1D9E75&labelColor=0f0f0f&style=flat-square)](https://packagist.org/packages/pyzit/tempmail) [![License](https://img.shields.io/packagist/l/pyzit/tempmail?color=1D9E75&labelColor=0f0f0f&style=flat-square)](LICENSE) [![Type Safety](https://img.shields.io/badge/types-declared-1D9E75?labelColor=0f0f0f&style=flat-square)](src/)

◈ 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

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:


◈ 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

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pyzit/tempmail contains the following files

Loading the files please wait ...