PHPackages                             mizmoz/php-api - 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. mizmoz/php-api

ActiveLibrary[API Development](/categories/api)

mizmoz/php-api
==============

Mizmoz PHP API

0.1.0(9y ago)024MITPHP

Since Nov 25Pushed 9y ago2 watchersCompare

[ Source](https://github.com/mizmoz/php-api)[ Packagist](https://packagist.org/packages/mizmoz/php-api)[ RSS](/packages/mizmoz-php-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

PHP API for [Mizmoz.com](https://www.mizmoz.com/)
=================================================

[](#php-api-for-mizmozcom)

PHP Library for the Mizmoz API v2.0

Requirements
------------

[](#requirements)

PHP 5.6+

Installation using Composer
---------------------------

[](#installation-using-composer)

Add mizmoz/php-api to your project

```
# composer require mizmoz/php-api

```

Or manually add mizmoz/php-api to your composer.json file

```
"require": {
  "mizmoz/php-api": "dev-master"
}

```

Then update your project with composer

```
# composer update

```

Basic Usage
===========

[](#basic-usage)

### Initialise the Client

[](#initialise-the-client)

```
use Mizmoz\API\Client;

// Use the apiId and apiKey provided in the admin interface
// Mizmoz.com > Admin > Access > API Access
$client = new Client($apiId, $apiKey);
```

### Create update a subscriber

[](#create-update-a-subscriber)

```
use Mizmoz\API\EmailList\Email\Create;

// Set the emailListId (required), email (required) and first name
$create = new Create($emailListId, $email, $firstName);

// Optionally you can set the title
$create->setTitle('Miss');

// Last name
$create->setLastName('Chadwick');

// Email source, this gives you a way of identifying where the subscriber came from.
// For example, website, facebook, xmas-campaign
$create->setSource('website');

// Set the subscriber created date, by default the current time and date will be used
// this can be useful if you're doing batch additions after a few days. Always be careful adding
// old data though, we want to keep our lists in good health!
$create->setCreated(new \DateTime('2016-01-26 09:00:00'));

// You can set additional info with the subscriber by using the subscriber meta store
// Before you can set extra data please add the extra columns to the email list
// Mizmoz.com > Email Lists > Settings > Add Fields in the Merge fields section
$create->setMeta('customerId', '12345');

// Execute the create command
$response = $client->execute($create);

var_dump($response);
```

### Send an transactional email campaign to a new or existing subscriber

[](#send-an-transactional-email-campaign-to-a-new-or-existing-subscriber)

```
use Mizmoz\API\EmailCampaign\Send;

// Set the email campaign id, email list id and email - this can be either emailId, and
// email address or array of details
// ['emailAddress' => 'my@email.com', 'emailFirstname' => 'Me']
$send = new Send($emailCampaignId, $emailListId, $emailId, [
   // This will be usable in the template with: {{live.message}}
   'message' => 'Just something to show variables being passed in to a template'
]);

$response = $client->execute($send);

var_dump($response);
```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3551d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/733223?v=4)[Ian Chadwick](/maintainers/ianchadwick)[@ianchadwick](https://github.com/ianchadwick)

---

Top Contributors

[![ianchadwick](https://avatars.githubusercontent.com/u/733223?v=4)](https://github.com/ianchadwick "ianchadwick (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mizmoz-php-api/health.svg)

```
[![Health](https://phpackages.com/badges/mizmoz-php-api/health.svg)](https://phpackages.com/packages/mizmoz-php-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k54](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
