PHPackages                             agupta/yahoo-api-bundle - 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. agupta/yahoo-api-bundle

ActiveSymfony-bundle

agupta/yahoo-api-bundle
=======================

Yahoo OAuth2 protected APIs to fetch contacts

062PHP

Since Dec 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ajay-gupta/YahooApiBundle)[ Packagist](https://packagist.org/packages/agupta/yahoo-api-bundle)[ RSS](/packages/agupta-yahoo-api-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

A Symfony2 Wrapper for the Yahoo API.

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

[](#installation)

Add this to your `composer.json` file:

```
"require": {
	"agupta/yahoo-api-bundle": "dev-master",
}
```

or install using composer

```
composer require agupta/yahoo-api-bundle:dev-master

```

Register bundle in `app/AppKernel.php`

```
$bundles = array(
    // ...
    new Yahoo\ApiBundle\YahooApiBundle(),
);
```

Configuration
-------------

[](#configuration)

Add this to your `config.yml`:

```
imports:
    # ...
    - { resource: "@YahooApiBundle/Resources/config/services.yml" }
```

```
yahoo_api:
    application_id: 'app-id'
    consumer_key: 'consumer-key'
    consumer_secret: 'consumer-secret'
    callback_url: 'callback-url'
```

Add this to your `routing.yml`:

```
yahoo_api:
    resource: "@YahooApiBundle/Resources/config/routing.yml"
    prefix:   /
```

Usage
-----

[](#usage)

**STEP1:**

Call this url for authorization and getting code from the Yahoo api:

```
http://YOUR_DOMAIN/yahoo_authorization

```

Above url will auto redirect to your callback\_url with additional parameter '**code**'

```
http://CALLBACK_URL?code=[CODE]

```

**STEP2:**

Add following code in your callback\_url action to get yahoo contacts:

```
public function CallbackUrlAction(Request $request)
{
    // ...
    $code = $request->get('code',null);
    if($code) {
        $yahooService = $this->get('AG.Yahoo.OAuth2.Service');
        $contacts = $yahooService->getContacts($code);
        var_dump($contacts);
    }
    // ...
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/96985bb083655a19ea7a41224e9b227af52b14dc3c9ff5f784ced96ba8ef4faa?d=identicon)[agupta](/maintainers/agupta)

---

Top Contributors

[![ajay-gupta](https://avatars.githubusercontent.com/u/7347112?v=4)](https://github.com/ajay-gupta "ajay-gupta (1 commits)")

### Embed Badge

![Health badge](/badges/agupta-yahoo-api-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/agupta-yahoo-api-bundle/health.svg)](https://phpackages.com/packages/agupta-yahoo-api-bundle)
```

PHPackages © 2026

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