Download the PHP package jeffersongoncalves/laravel-postmark without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-postmark. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-postmark
More information about jeffersongoncalves/laravel-postmark
Files in jeffersongoncalves/laravel-postmark
Package laravel-postmark
Short Description PHP/Laravel client for the Postmark REST API: transactional email, templates, bounces, messages, stats, server and suppressions.
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-postmark
Informations about the package laravel-postmark
Laravel Postmark
A PHP/Laravel client for the Postmark REST API. Covers transactional email (single, templated and batch), templates, bounces, message search, outbound statistics, server details and suppressions through a simple, typed API built on Laravel's Http client.
Features
- Transactional email: send a single message, a templated message, or a batch of either
- Templates: list, get, create, update, delete
- Bounces: list with filters, get, raw dump, reactivate, delivery stats
- Messages: search outbound and inbound, get message details
- Stats: outbound overview, sends, bounces, opens, clicks, spam
- Server: get the authenticated server's details
- Suppressions: dump, create and delete per message stream
- Throws
PostmarkException(carrying Postmark'sErrorCodeand error body) on any non-2xx response - Throws
InvalidArgumentExceptionbefore hitting the API when a required field is missing
Installation
You can install the package via composer:
Publish the config file:
Set your Postmark server token in .env:
Find it under Servers > (your server) > API Tokens in your Postmark account.
Configuration
message_stream is applied to every send and suppression call that does not pass its own, and default_count is the page size used by the list endpoints.
Usage
The package is resolved via the Postmark facade or by injecting JeffersonGoncalves\Postmark\Postmark. Each API group is exposed as a method returning a dedicated resource class; sending and the server endpoint live directly on the manager.
Sending email
Sending with a template
An integer is sent as TemplateId, a string as TemplateAlias:
Sending a batch
Batches take raw Postmark message payloads; the configured message stream is applied to any message that does not set its own.
Templates
Bounces
Messages
Stats
Server
Suppressions
Error handling
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-postmark with dependencies
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.16