PHPackages                             thoughtchimp/unengage-api-wrapper - 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. thoughtchimp/unengage-api-wrapper

AbandonedArchivedLibrary[API Development](/categories/api)

thoughtchimp/unengage-api-wrapper
=================================

Unengage api wrapper

v1.0.5(8y ago)060MITPHPPHP &gt;=5.5

Since Jul 26Pushed 8y ago2 watchersCompare

[ Source](https://github.com/thoughtchimp/unengage-api-wrapper)[ Packagist](https://packagist.org/packages/thoughtchimp/unengage-api-wrapper)[ Docs](https://github.com/thoughtchimp/unengage-api-wrapper)[ RSS](/packages/thoughtchimp-unengage-api-wrapper/feed)WikiDiscussions master Synced 2mo ago

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

Unengage SDK for PHP
====================

[](#unengage-sdk-for-php)

This repository contains the open source PHP SDK that allows you to access the Unengage API from your PHP app.

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

[](#installation)

The Unengage SDK can be installed with [Composer](https://getcomposer.org/). Run this command:

```
composer require thoughtchimp/unengage-api-wrapper
```

Usage
-----

[](#usage)

> **Note:** This version of the Unengage SDK for PHP requires PHP 5.5 or greater.

#### Instantiating SDK

[](#instantiating-sdk)

```
use Unengage\API;

$api = API('Pass api_key here');
```

#### Get all streams

[](#get-all-streams)

```
$streams = $api->streams();
```

#### Get stream by ID

[](#get-stream-by-id)

```
$stream = $api->stream('Pass stream id here');
```

#### Create stream

[](#create-stream)

```
$stream = $api->createStream('Stream name', 'Stream description');
```

#### Update particular stream by ID

[](#update-particular-stream-by-id)

```
$stream = $api->updateStream('STREAM_ID', 'Stream name updated', [
  'description' => 'This is the updated description'
]);
```

#### Delete stream by ID

[](#delete-stream-by-id)

```
$response = $api->deleteStream('STREAM_ID');
```

#### Get stream social posts by passing stream id

[](#get-stream-social-posts-by-passing-stream-id)

```
$posts = $api->streamSocialPosts('STREAM_ID', [
  'tags' => 'social, digital'
]);
```

#### Get stream social post preview by passing stream id, platform &amp; post\_url

[](#get-stream-social-post-preview-by-passing-stream-id-platform--post_url)

```
$post = $api->streamSocialPostPreview('STREAM_ID', 'platform goest here ex: twitter', 'post_url goes here ex: twitter post url');
```

#### Create stream social post by passing stream id, platform &amp; post\_url

[](#create-stream-social-post-by-passing-stream-id-platform--post_url)

```
$post = $api->streamSocialPostCreate('STREAM_ID', 'platform goest here ex: twitter', 'post_url goes here ex: twitter post url', [
  'tags'        => 'social, digital',
  'is_pin'      => true,
  'is_sponsored'=> false,
  'status'      => 'published'
]);
```

#### Update social posts of a stream by passing post ids

[](#update-social-posts-of-a-stream-by-passing-post-ids)

```
$response = $api->updateStreamSocialPosts('STREAM_ID', ['post_id_1','post_id_2'], [
  'is_sponsored'  => true,
  'tags'          => 'funny, hilarious',
  'status'        => 'draft'
]);
```

#### Delete stream by ID

[](#delete-stream-by-id-1)

```
$response = $api->deleteStreamSocialPosts('STREAM_ID', ['post_id_1', 'post_id_2', 'post_id_3']);
```

#### Pin a particular social post of a particular stream

[](#pin-a-particular-social-post-of-a-particular-stream)

```
$response = $api->pinStreamSocialPost('STREAM_ID', 'POST_ID');
```

#### Get list of all social feeds of a particular stream

[](#get-list-of-all-social-feeds-of-a-particular-stream)

```
$feeds = $api->streamSocialFeeds('STREAM_ID');
```

#### Create social feed under a particular stream

[](#create-social-feed-under-a-particular-stream)

```
$feed = $api->createStreamSocialFeed('STREAM_ID', '@thoughtchimp', 'twitter', [
  'status'          => 'published',
  'tags'            => 'entertainment, video service, fun',
  'exclude.mentions'=> true,
  'exclude.retweets'=> false,
  'exclude.replies' => true,
  'filters.all'     => 'entertainment',
  'filters.any'     => 'funny, hilarious, enjoy',
  'filters.none'    => 'negative',
  'is_realtime'     => false
]);
```

#### Get a particular social feed by ID

[](#get-a-particular-social-feed-by-id)

```
$feed = $api->streamSocialFeed('STREAM_ID', 'FEED_ID');
```

#### Update stream social feed

[](#update-stream-social-feed)

```
$feed = $api->updateStreamSocialFeed('STREAM_ID', 'POST_ID', [
  'status'          => 'draft',
  'tags'            => 'social, digital, media',
  'exclude.mentions'=> false,
  'exclude.retweets'=> false,
  'exclude.replies' => true,
  'filters.all'     => 'entertainment',
  'filters.any'     => 'funny, hilarious, enjoy',
  'filters.none'    => 'negative',
  'is_realtime'     => true
]);
```

#### Delete social feed

[](#delete-social-feed)

```
$response = $api->deleteStreamSocialFeed('STREAM_ID', 'FEED_ID');
```

#### Refresh stream social feed (Prioritizing feed)

[](#refresh-stream-social-feed-prioritizing-feed)

```
$response = $api->refreshStreamSocialFeed('STREAM_ID', 'FEED_ID');
```

#### Get all social accounts of a particular stream

[](#get-all-social-accounts-of-a-particular-stream)

```
$accounts = $api->streamSocialAccounts('STREAM_ID');
```

#### Create stream social account

[](#create-stream-social-account)

```
$api->createStreamSocialAccount('STREAM_ID', NAME, USERNAME, UID, PLATFORM, TOKEN, [array of properties]);
$account = $api->createStreamSocialAccount('STREAM_ID', 'Rohit Khatri', 'rohit49khatri', '39478934', 'twitter', '39478skhf3948shkjfsdf', [
  'secret'        => 'Here secret goes if provided by the platform example twitter',
  'refresh_token' => 'Here secret goes if provided by the platform example youtube'
]);
```

Complete documentation is available [here](http://api.unengage.com/docs).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~28 days

Recently: every ~35 days

Total

6

Last Release

3073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f81e7ec90a69161f732f912aeb5b138471ba06a19ecb7b60e2dc28db12f49521?d=identicon)[thoughtchimp](/maintainers/thoughtchimp)

![](https://www.gravatar.com/avatar/4b8fa9f624f91b718e02b1ec9997eaedd6d120cc6925e97960fa959d4b4b6287?d=identicon)[Rohit Khatri](/maintainers/Rohit%20Khatri)

---

Top Contributors

[![rohitkhatri](https://avatars.githubusercontent.com/u/12977724?v=4)](https://github.com/rohitkhatri "rohitkhatri (12 commits)")

---

Tags

apisdkwrapperunengage

### Embed Badge

![Health badge](/badges/thoughtchimp-unengage-api-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/thoughtchimp-unengage-api-wrapper/health.svg)](https://phpackages.com/packages/thoughtchimp-unengage-api-wrapper)
```

###  Alternatives

[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[kronusme/dota2-api

DotA 2 Web API PHP wrapper

4782.7k](/packages/kronusme-dota2-api)

PHPackages © 2026

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