PHPackages                             stephenyeargin/yammer-oauth2-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. stephenyeargin/yammer-oauth2-php

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

stephenyeargin/yammer-oauth2-php
================================

An OAuth2 Wrapper for Yammer

v1.0.0(10y ago)1011.4k↓85.4%11MITPHPCI failing

Since Nov 9Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/stephenyeargin/yammer-oauth2-php)[ Packagist](https://packagist.org/packages/stephenyeargin/yammer-oauth2-php)[ RSS](/packages/stephenyeargin-yammer-oauth2-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

Yammer OAuth2 for PHP
=====================

[](#yammer-oauth2-for-php)

[![CI Build and Test](https://github.com/stephenyeargin/yammer-oauth2-php/actions/workflows/ci.yml/badge.svg)](https://github.com/stephenyeargin/yammer-oauth2-php/actions/workflows/ci.yml)

PHP wrapper for Yammer's API.

Install
-------

[](#install)

Install with Composer:

```
$ composer require stephenyeargin/yammer-oauth2-php
```

Usage
-----

[](#usage)

Example configuration array passed to constructor:

```
$config['consumer_key'] = '1ABCdefhiJKLmnop';
$config['consumer_secret'] = 'ABCdefhi_JKLmnop';
$config['callbackUrl'] = 'http://' . $_SERVER['SERVER_NAME'] . '/yammer/callback/';

$yammer = new YammerPHP\YammerPHP($config);

```

Starting the callback process:

```
// Redirect the user to the OAuth page for your application
header('Location: ' . $yammer->getAuthorizationUrl());
```

Upgrading the callback code to an authorization token:

```
$code = $_GET['code'];
$token = $yammer->getAccessToken($code);
```

Using the token (either from a fresh process or saved in the database)

```
$yammer->setOAuthToken($token);
```

Making a call with the `$yammer` instance:

```
if (!$yammer->testAuth()) {
    // Handle this.
}

// Retrieve feed for authenticated user
try {
    $feed = $yammer->get('messages/my_feed.json');
    print_r($feed);
} catch (YammerPHPException $e) {
    print 'Error: ';
    print $e->getMessage();
}
```

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance58

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

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

3890d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/80459?v=4)[Stephen Yeargin](/maintainers/stephenyeargin)[@stephenyeargin](https://github.com/stephenyeargin)

---

Top Contributors

[![stephenyeargin](https://avatars.githubusercontent.com/u/80459?v=4)](https://github.com/stephenyeargin "stephenyeargin (26 commits)")[![afinno](https://avatars.githubusercontent.com/u/1435570?v=4)](https://github.com/afinno "afinno (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![ejlofgren](https://avatars.githubusercontent.com/u/4163941?v=4)](https://github.com/ejlofgren "ejlofgren (1 commits)")

---

Tags

hacktoberfestoauth2phpyammer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stephenyeargin-yammer-oauth2-php/health.svg)

```
[![Health](https://phpackages.com/badges/stephenyeargin-yammer-oauth2-php/health.svg)](https://phpackages.com/packages/stephenyeargin-yammer-oauth2-php)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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