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

ActiveLibrary[API Development](/categories/api)

mizanur/icontact-api-php
========================

iContact API for PHP

v2.2(9y ago)154.1k↓32.9%2[1 PRs](https://github.com/mizan3008/icontact-php-api/pulls)1MITPHPPHP &gt;=5.3.0

Since Nov 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mizan3008/icontact-php-api)[ Packagist](https://packagist.org/packages/mizanur/icontact-api-php)[ Docs](https://github.com/mizanur-rahman/icontact-api-php)[ RSS](/packages/mizanur-icontact-api-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (3)Used By (1)

iContact API
============

[](#icontact-api)

Super-simple, minimum abstraction iContact API v2 wrapper, in PHP.

Requires PHP 5.3 and a pulse.

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

[](#installation)

You can install the iContact-api using Composer:

```
composer require mizanur/icontact-api-php

```

Examples
--------

[](#examples)

use this on top of your class:

```
use iContact\iContactApi;

```

// Give the API your information

```
iContactApi::getInstance()->setConfig(array(
	'appId'       => '',
	'apiPassword' => '',
	'apiUsername' => ''
));

```

// Store the singleton

```
$oiContact = iContactApi::getInstance();

```

// Try to make the call(s)

```
try {
	//  are examples on how to call the  iContact PHP API class
	// Grab all contacts
	var_dump($oiContact->getContacts());
	// Grab a contact
	var_dump($oiContact->getContact(42094396));
	// Create a contact
	var_dump($oiContact->addContact('joe@shmoe.com', null, null, 'Joe', 'Shmoe', null, '123 Somewhere Ln', 'Apt 12', 'Somewhere', 'NW', '12345', '123-456-7890', '123-456-7890', null));
	// Get messages
	var_dump($oiContact->getMessages());
	// Create a list
	var_dump($oiContact->addList('somelist', 1698, true, false, false, 'Just an example list', 'Some List'));
	// Subscribe contact to list
	var_dump($oiContact->subscribeContactToList(42094396, 179962, 'normal'));
	// Grab all campaigns
	var_dump($oiContact->getCampaigns());
	// Create message
	var_dump($oiContact->addMessage('An Example Message', 585, 'An Example Message', 'An Example Message', 'ExampleMessage', 33765, 'normal'));
	// Schedule send
	var_dump($oiContact->sendMessage(array(33765), 179962, null, null, null, mktime(12, 0, 0, 1, 1, 2012)));
	// Upload data by sending a filename (execute a PUT based on file contents)
	var_dump($oiContact->uploadData('/path/to/file.csv', 179962));
	// Upload data by sending a string of file contents
	$sFileData = file_get_contents('/path/to/file.csv');  // Read the file
	var_dump($oiContact->uploadData($sFileData, 179962)); // Send the data to the API
} catch (Exception $oException) { // Catch any exceptions
	// Dump errors
	var_dump($oiContact->getErrors());
	// Grab the last raw request data
	var_dump($oiContact->getLastRequest());
	// Grab the last raw response data
	var_dump($oiContact->getLastResponse());
}

```

*Note for contributors:* This is not Code Golf.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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

Every ~517 days

Total

2

Last Release

3317d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9748b0766b24b61753b31be891038b23e2207790d4a8892451cc4457027e4392?d=identicon)[mizan3008](/maintainers/mizan3008)

---

Top Contributors

[![mizan3008](https://avatars.githubusercontent.com/u/6143192?v=4)](https://github.com/mizan3008 "mizan3008 (24 commits)")[![mizanur-rahman](https://avatars.githubusercontent.com/u/52867202?v=4)](https://github.com/mizanur-rahman "mizanur-rahman (2 commits)")

---

Tags

icontact-api-php

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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