PHPackages                             megumi/wp-yahoo-feed - 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. megumi/wp-yahoo-feed

ActiveLibrary

megumi/wp-yahoo-feed
====================

1.1.3(10y ago)020GPL2PHPPHP &gt;=5.3

Since Jul 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/megumi-wp-composer/wp-yahoo-feed)[ Packagist](https://packagist.org/packages/megumi/wp-yahoo-feed)[ RSS](/packages/megumi-wp-yahoo-feed/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (7)Used By (0)

megumi/wp-yahoo-feed
====================

[](#megumiwp-yahoo-feed)

[![Build Status](https://camo.githubusercontent.com/20f395658e28dd5bb682a3fb3ccc292949314e8b8d7e0cf56042b9a3e3e64b00/68747470733a2f2f7472617669732d63692e6f72672f6d6567756d692d77702d636f6d706f7365722f77702d7961686f6f2d666565642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/megumi-wp-composer/wp-yahoo-feed) [![Latest Stable Version](https://camo.githubusercontent.com/f87c55e19150fd7c2fe7b582f52a5ea8432d487b1dfc53732b7f54128c96446c/68747470733a2f2f706f7365722e707567782e6f72672f6d6567756d692f77702d7961686f6f2d666565642f762f737461626c652e737667)](https://packagist.org/packages/megumi/wp-yahoo-feed) [![Total Downloads](https://camo.githubusercontent.com/101565d3d1abb90c71f9da282e5ce3d5bb918bb721848ba9babb14e1b51bbdd7/68747470733a2f2f706f7365722e707567782e6f72672f6d6567756d692f77702d7961686f6f2d666565642f646f776e6c6f6164732e737667)](https://packagist.org/packages/megumi/wp-yahoo-feed) [![Latest Unstable Version](https://camo.githubusercontent.com/10c397ae7c1a271b6d7a5c5ff11c0c0dc3357f4ad4900d6779099de1205e7fdb/68747470733a2f2f706f7365722e707567782e6f72672f6d6567756d692f77702d7961686f6f2d666565642f762f756e737461626c652e737667)](https://packagist.org/packages/megumi/wp-yahoo-feed) [![License](https://camo.githubusercontent.com/97458f24a92984447010cbd8fcb3119c43323655921b5002c6975f81086d2f86/68747470733a2f2f706f7365722e707567782e6f72672f6d6567756d692f77702d7961686f6f2d666565642f6c6963656e73652e737667)](https://packagist.org/packages/megumi/wp-yahoo-feed)

Helper class Generates the custom feed for Yahoo Japan for WordPress plugin.

- Cut the title in 28 chars.
- Replace the `guid` from uri to ID.
- Filter the HTML of `` that is allowed by Yahoo.
- Set post-thumbnail to `` and add it to ``.
- Add `caption` attribute to `` in ``;
- Set post modified date to ``.
- Add metabox for Yahoo's categories and set it to ``.
- Add trashed items to the feed.

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

[](#installation)

Create a composer.json in your plugin root or mu-plugins

```
{
    "require": {
        "megumi/wp-yahoo-feed": "*"
    }
}

```

Place the following code into your plugin.

```
require_once dirname( __FILE__ ) . '/vendor/autoload.php';

```

Then:

```
$ composer install

```

How to use
----------

[](#how-to-use)

```
require_once dirname( __FILE__ ) . '/vendor/autoload.php';

$yahoo_feed = new Megumi\WP\Yahoo_Feed( 'my-feed' );
$yahoo_feed->set_categories( array(
    '0' => 'Empty Category',
    '1' => 'Life Style'
) );
$yahoo_feed->register();

```

Then access to:

`http://example.com/feed/my-feed` or `http://example.com/feed/?type=my-feed`

Customization
-------------

[](#customization)

### Filter Hooks

[](#filter-hooks)

- `yahoo_feed_template_{$feed_name}` - Filters the feed template.
- `yahoo_feed_item_title_width_{$feed_name}` - Filters the width of item's title.
- `yahoo_feed_item_category_{$feed_name}` - Filters the category of the item.
- `yahoo_feed_item_enclosure_image_size_{$feed_name}` - Filters the image size of post-thumbnail.
- `yahoo_feed_item_default_enclosure_{$feed_name}` - Filters the default post-thumbnail.
- `yahoo_feed_item_excerpt_{$feed_name}` - Filters the descrption of the item.
- `yahoo_feed_item_allowed_html_{$feed_name}` - Filters the allowed html.

### Action Hooks

[](#action-hooks)

- `yahoo_feed_item_{$feed_name}` - Fires at item node in the feed.

Contributing
------------

[](#contributing)

Clone this project.

```
$ git clone git@github.com:megumi-wp-composer/wp-yahoo-feed.git

```

### Run testing

[](#run-testing)

Initialize the testing environment locally:

(you'll need to already have mysql, svn and wget available)

```
$ bash bin/install-wp-tests.sh wordpress_test root '' localhost latest

```

Install phpunit.

```
$ composer install

```

The unit test files are in the `tests/` directory.

To run the unit tests, just execute:

```
$ phpunit

```

### Issue

[](#issue)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

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 ~0 days

Total

5

Last Release

3957d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1366a673de80559a738e11fb4bd3600842f45ebc21abe8e2842e7205686a3ca0?d=identicon)[miya0001](/maintainers/miya0001)

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

---

Top Contributors

[![miya0001](https://avatars.githubusercontent.com/u/309946?v=4)](https://github.com/miya0001 "miya0001 (18 commits)")

### Embed Badge

![Health badge](/badges/megumi-wp-yahoo-feed/health.svg)

```
[![Health](https://phpackages.com/badges/megumi-wp-yahoo-feed/health.svg)](https://phpackages.com/packages/megumi-wp-yahoo-feed)
```

PHPackages © 2026

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