PHPackages                             kbariotis/feedly-api - 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. kbariotis/feedly-api

ActiveLibrary[API Development](/categories/api)

kbariotis/feedly-api
====================

PHP wrapper around Feedly's REST API

1.1(11y ago)1247.0k29[1 issues](https://github.com/stakisko/feedly-api/issues)MITPHP

Since Aug 4Pushed 5y ago14 watchersCompare

[ Source](https://github.com/stakisko/feedly-api)[ Packagist](https://packagist.org/packages/kbariotis/feedly-api)[ Docs](https://github.com/stakisko/feedly-api)[ RSS](/packages/kbariotis-feedly-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

feedly-api
==========

[](#feedly-api)

PHP wrapper around [Feedly's REST API](http://developer.feedly.com/).

[![Build Status](https://camo.githubusercontent.com/a6ba86834067b9f10a92963f7971c4aa08e4700841eb995df9e3e5982fb237d0/68747470733a2f2f7472617669732d63692e6f72672f6b626172696f7469732f666565646c792d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kbariotis/feedly-api)

Notes
-----

[](#notes)

Check the [examples](https://github.com/kbariotis/feedly-api/blob/master/example) before anything.

If you are working in Sandbox mode of Feedly's API you should know a couple of things.

- Your Client's ID, secret must taken from [here](https://groups.google.com/forum/#!topic/feedly-cloud/a_cGSAzv8bY), which is updated very often so be sure to check it once in while.
- While in Sandbox mode, only "" is permited for callback url. So leave it as is and just replace it every time with your domain, if it's different. You can also add you own to permitted domains [here](https://groups.google.com/forum/#!topic/feedly-cloud/vSo0DuShvDg/discussion).
- Once you've done developing you can contact Feedly and ask them to put you on [production](http://developer.feedly.com/v3/sandbox/).

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

[](#installation)

Add this to your composer.json

```
"require": {
        "kbariotis/feedly-api": "dev-master"
    }

```

Or download the [ZIP](https://github.com/stakisko/feedly-api/archive/master.zip).

Documentation
-------------

[](#documentation)

**Constructor:**

```
$feedly = new Feedly(Mode $mode, AccessTokenStorage $accessTokenStorage);
```

The `Mode` determines if you want to use the Sandbox mode (`SandBoxMode` class) or standard one (`DeveloperMode` class).

The `AccessTokenStorage` determines where the information about token should be stored. In example in session, file or database.

\*\*\*Sandbox Example

```
$feedly = new Feedly(new feedly\Mode\SandBoxMode(), new feedly\AccessTokenStorage\AccessTokenSessionStorage());
```

\*\*\*Standard Mode Example

```
$feedly = new Feedly(new feedly\Mode\DeveloperMode(), new feedly\AccessTokenStorage\AccessTokenSessionStorage());
```

**Authentication:**

Check the [example](https://github.com/stakisko/feedly-api/blob/master/example/authentication.php).

Note that not every Feedly action needs authentication. Passing a token is optional.

**Endpoints**

[Profile:](http://developers.feedly.com/v3/profile/)

```
    $profile = $feedly->profile();

    var_dump($profile->fetch());

    $profile->setOptions(array(
        'email'=>'odysseus@ithaca.gr'
    ));

    $profile->persist();
```

[Categories:](http://developers.feedly.com/v3/categories/)

```
    $categories = $feedly->categories();

    var_dump($categories->fetch());

    $categories->changeLabel($id, 'New Label');

    $categories->delete($id);
```

[Entries:](http://developers.feedly.com/v3/entries/)

```
    $entries = $feedly->entries();

    var_dump($entries->get($id));
```

[Streams:](http://developers.feedly.com/v3/streams/)

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

    //Retrieve ids from stream
    var_dump($stream->get($id,"ids"));

    //Retrieve contents from stream
    var_dump($stream->get($id,"contents"));
```

[Markers:](http://developers.feedly.com/v3/markers/)

```
    $markers = $feedly->markers();

    var_dump($markers->get($id));

    var_dump($markers->getUnreadCount());

    $markers->markArticleAsRead(array(
        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_14499073085:c034:d32dab1f',
        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_1449255d60a:22c3491:9c6d71ab'
    ));

    $markers->markArticleAsUnread(array(
        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_14499073085:c034:d32dab1f',
        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_1449255d60a:22c3491:9c6d71ab'
    ));

    $markers->markFeedAsUnread(array(
        'feed/http://feeds.feedburner.com/design-milk'
    ));

    $markers->markFeedAsUnread(array(
        'user/c805fcbf-3acf-4302-a97e-d82f9d7c897f/category/design',
        'user/c805fcbf-3acf-4302-a97e-d82f9d7c897f/category/photography'
    ));
```

Contribute
----------

[](#contribute)

- Create a branch
- Add your models [here](src/feedly/Models)
- Run tests with `phpunit`
- Make a Pull Request

Licence
-------

[](#licence)

```
The MIT License (MIT)

Copyright (c) 2014 Konstantinos Bariotis

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~23 days

Total

4

Last Release

4230d ago

Major Versions

0.2 → 1.02014-10-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72617910?v=4)[stakisko](/maintainers/stakisko)[@stakisko](https://github.com/stakisko)

---

Top Contributors

[![kbariotis](https://avatars.githubusercontent.com/u/605742?v=4)](https://github.com/kbariotis "kbariotis (76 commits)")[![pavelhouzva](https://avatars.githubusercontent.com/u/4955758?v=4)](https://github.com/pavelhouzva "pavelhouzva (8 commits)")[![WesWedding](https://avatars.githubusercontent.com/u/521813?v=4)](https://github.com/WesWedding "WesWedding (7 commits)")[![boraida](https://avatars.githubusercontent.com/u/10729210?v=4)](https://github.com/boraida "boraida (4 commits)")[![piotrpasich](https://avatars.githubusercontent.com/u/1180426?v=4)](https://github.com/piotrpasich "piotrpasich (2 commits)")[![kevinschenkers](https://avatars.githubusercontent.com/u/1161005?v=4)](https://github.com/kevinschenkers "kevinschenkers (1 commits)")[![davidshq](https://avatars.githubusercontent.com/u/8009774?v=4)](https://github.com/davidshq "davidshq (1 commits)")[![ben-kn-app](https://avatars.githubusercontent.com/u/11467196?v=4)](https://github.com/ben-kn-app "ben-kn-app (1 commits)")

---

Tags

feedlyphpphp-wrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kbariotis-feedly-api/health.svg)

```
[![Health](https://phpackages.com/badges/kbariotis-feedly-api/health.svg)](https://phpackages.com/packages/kbariotis-feedly-api)
```

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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