Download the PHP package lettermint/lettermint-php without Composer
On this page you can find all versions of the php package lettermint/lettermint-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lettermint/lettermint-php
More information about lettermint/lettermint-php
Files in lettermint/lettermint-php
Package lettermint-php
Short Description Official Lettermint PHP SDK.
License MIT
Homepage https://github.com/lettermint/lettermint-php
Informations about the package lettermint-php
Lettermint PHP SDK
Integrate Lettermint in your PHP project.
Requirements
- PHP 8.2 or higher
- Composer
Installation
You can install the package via composer:
Usage
Initialize the Lettermint client with your Sending API token:
For new integrations, prefer explicit clients for the two API surfaces:
Sending API tokens are project-specific and authenticate with the x-lettermint-token header. API tokens are team-scoped and authenticate with Authorization: Bearer .... Keep these tokens separate and never reuse an API token for sending-only workloads.
Sending Emails
The SDK provides a fluent interface for composing and sending emails:
The SDK supports various email features:
You can also send with an array payload:
Batch Sending
Inline Attachments
You can embed images and other content in your HTML emails using content IDs:
Idempotency
To ensure that duplicate requests are not processed, you can use an idempotency key:
The idempotency key should be a unique string that you generate for each unique email you want to send. If you make the same request with the same idempotency key, the API will return the same response without sending a duplicate email.
For more information, refer to the documentation.
API Client
Use the API client for team-scoped resources such as projects, domains, routes, suppressions, stats, messages, and webhooks:
Both API surfaces support ping():
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Upgrading
Please see UPGRADE.md for guidance on upgrading from v1 to v2.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Bjarn Bronsveld
- All Contributors
License
The MIT License (MIT). Please see License File for more information.