Download the PHP package zemailme/zemail-php without Composer
On this page you can find all versions of the php package zemailme/zemail-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zemailme/zemail-php
More information about zemailme/zemail-php
Files in zemailme/zemail-php
Package zemail-php
Short Description The official PHP SDK for Zemail Developer API.
License MIT
Homepage https://zemail.me
Informations about the package zemail-php
Zemail PHP SDK
The official PHP SDK for the Zemail Developer API. Create and manage temporary mailboxes, receive emails, and handle attachments programmatically.
Requirements
- PHP 8.2 or higher
- Guzzle HTTP client (
guzzlehttp/guzzle: ^7.8) ext-json
Installation
Install the package via Composer:
Quickstart
Initialize the Client with your API key:
You can optionally specify an API version or custom Guzzle client options (e.g. timeout):
Usage
1. Account & Subscription
Access your account profile, active plan, and API/mailbox usage limits:
2. Domains
List available domains for mailbox creation:
3. Mailboxes
List Mailboxes
Create a Random Mailbox
Create a Custom Mailbox
Get Mailbox Details
Delete a Mailbox
4. Emails & Attachments
List Emails in a Mailbox
Get Full Email Details
Mark Email as Read
Get Temporary Attachment Download URL
Delete an Email
Error Handling
All SDK exceptions inherit from Zemail\Exceptions\ZemailException:
| Exception | HTTP Status | Description |
|---|---|---|
AuthenticationException |
401, 403 |
Invalid API key or unauthorized access |
NotFoundException |
404 |
Resource (mailbox, email, domain) not found |
ValidationException |
422 |
Request validation failure (includes $e->errors) |
RateLimitException |
429 |
Daily or concurrency rate limit reached |
ZemailException |
Any | Generic SDK/API exception |
Development & Testing
Run unit & feature tests with Pest:
Run static analysis with PHPStan:
Format code with Laravel Pint:
License
The MIT License (MIT). Please see License File for more information.