PHPackages                             metigan/metigan-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. [API Development](/categories/api)
4. /
5. metigan/metigan-php

ActiveLibrary[API Development](/categories/api)

metigan/metigan-php
===================

Official PHP SDK for Metigan API. Send emails, manage contacts, audiences, templates, and forms with ease.

10PHP

Since Jan 11Pushed 4mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Metigan PHP SDK
===============

[](#metigan-php-sdk)

[![Packagist](https://camo.githubusercontent.com/5d58e60f555a0c9f0047ce2ce84cf7fbe4c1fe47bdd3d6197af3ca4115605fb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65746967616e2f6d65746967616e2d706870)](https://packagist.org/packages/metigan/metigan-php)[![PHP Version](https://camo.githubusercontent.com/cfe0c879a365271ec5dde509f691033221bafefb806cbe2bfea71ca5cc69189b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d65746967616e2f6d65746967616e2d706870)](https://packagist.org/packages/metigan/metigan-php)[![License](https://camo.githubusercontent.com/ffc1e17304ee1ebe1112a17d2ed01823015d394340b6f5f920e1115a2a593cf4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d65746967616e2f6d65746967616e2d706870)](LICENSE)

Official PHP SDK for the Metigan API. Send emails, manage contacts, audiences, templates, and forms with ease.

✨ Features
----------

[](#-features)

- 📧 **Send Emails** - Send HTML emails with attachments, CC, BCC, and templates
- 👥 **Manage Contacts** - Create, update, list, and manage contact subscriptions
- 🎯 **Audiences** - Organize contacts into audiences and track statistics
- 📝 **Forms** - Submit and manage form data
- 🎨 **Templates** - Use email templates with dynamic variables
- 🔄 **Automatic Retry** - Built-in retry logic for failed requests
- ⚡ **Type Safety** - Strong typing with PHP 7.4+ features
- 🛡️ **Error Handling** - Comprehensive exception handling

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require metigan/metigan-php
```

Or add to your `composer.json`:

```
{
    "require": {
        "metigan/metigan-php": "^1.0"
    }
}
```

🚀 Quick Start
-------------

[](#-quick-start)

```
