PHPackages                             sendlayer/sendlayer-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. sendlayer/sendlayer-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

sendlayer/sendlayer-php
=======================

Official PHP SDK for SendLayer API

1.0.0(8mo ago)0295—0%MITPHPPHP &gt;=7.4CI passing

Since Aug 28Pushed 8mo agoCompare

[ Source](https://github.com/SendLayer/sendlayer-php)[ Packagist](https://packagist.org/packages/sendlayer/sendlayer-php)[ RSS](/packages/sendlayer-sendlayer-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (0)

[   ![SendLayer Logo](https://camo.githubusercontent.com/5447caa9db5c5fa28bb6b90d913041bcb3af0e16d9c2ff65804fbe516429e3db/68747470733a2f2f73656e646c617965722e636f6d2f77702d636f6e74656e742f7468656d65732f73656e646c617965722d7468656d652f6173736574732f696d616765732f7376672f6c6f676f2d6c696768742e737667)](https://sendlayer.com)### SendLayer PHP SDK

[](#sendlayer-php-sdk)

The official PHP SDK for interacting with the SendLayer API, providing a simple and intuitive interface for sending emails, managing webhooks, and retrieving email events.

[![MIT licensed](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](./LICENSE)

Features
--------

[](#features)

- **Email Sending**: Send transactional emails with support for HTML, text, attachments, and advanced options
- **Webhook Management**: Create, retrieve, and delete webhooks for real-time event notifications
- **Event Tracking**: Retrieve email events and analytics data
- **Error Handling**: Comprehensive exception handling with specific error types
- **Validation**: Built-in validation for email addresses, URLs, and API parameters
- **File Attachments**: Support for both local and remote file attachments
- **Modern PHP**: Built with PHP 7.4+ features and PSR-4 autoloading

Installation
------------

[](#installation)

### Using Composer (Recommended)

[](#using-composer-recommended)

```
composer require sendlayer/sendlayer-php
```

### Manual Installation

[](#manual-installation)

1. Download the SDK
2. Include the autoloader in your project
3. Install dependencies: `composer install`

Quick Start
-----------

[](#quick-start)

```
