{"id":19572669,"url":"https://github.com/kbariotis/feedly-api","last_synced_at":"2025-04-06T20:13:19.758Z","repository":{"id":13287901,"uuid":"15973764","full_name":"kbariotis/feedly-api","owner":"kbariotis","description":"PHP wrapper around Feedly's REST API","archived":false,"fork":false,"pushed_at":"2021-03-07T19:48:47.000Z","size":103,"stargazers_count":122,"open_issues_count":1,"forks_count":31,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-30T19:07:10.403Z","etag":null,"topics":["feedly","php","php-wrapper"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kbariotis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-16T16:36:18.000Z","updated_at":"2024-01-25T19:23:42.000Z","dependencies_parsed_at":"2022-09-23T11:40:38.744Z","dependency_job_id":null,"html_url":"https://github.com/kbariotis/feedly-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbariotis%2Ffeedly-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbariotis%2Ffeedly-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbariotis%2Ffeedly-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kbariotis%2Ffeedly-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kbariotis","download_url":"https://codeload.github.com/kbariotis/feedly-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543595,"owners_count":20955865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feedly","php","php-wrapper"],"created_at":"2024-11-11T06:28:02.899Z","updated_at":"2025-04-06T20:13:19.730Z","avatar_url":"https://github.com/kbariotis.png","language":"PHP","readme":"feedly-api\n=========\nPHP wrapper around [Feedly's REST API](http://developer.feedly.com/).\n\n[![Build Status](https://travis-ci.org/kbariotis/feedly-api.svg?branch=master)](https://travis-ci.org/kbariotis/feedly-api)\n\nNotes\n-----\nCheck the [examples](https://github.com/kbariotis/feedly-api/blob/master/example) before anything.\n\nIf you are working in Sandbox mode of Feedly's API you should know a couple of things.\n\n* 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.\n* While in Sandbox mode, only \"http://localhost\" 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).\n* Once you've done developing you can contact Feedly and ask them to put you on [production](http://developer.feedly.com/v3/sandbox/).\n\n\nInstallation\n-----------\nAdd this to your composer.json\n```\n\"require\": {\n        \"kbariotis/feedly-api\": \"dev-master\"\n    }\n```\n\nOr download the [ZIP](https://github.com/stakisko/feedly-api/archive/master.zip).\n\nDocumentation\n-------------\n\n**Constructor:**\n\n```php\n$feedly = new Feedly(Mode $mode, AccessTokenStorage $accessTokenStorage);\n```\n\nThe `Mode` determines if you want to use the Sandbox mode (`SandBoxMode` class) or standard one (`DeveloperMode` class).\n\nThe `AccessTokenStorage` determines where the information about token should be stored. In example in session, file or database.\n\n***Sandbox Example\n\n```php\n$feedly = new Feedly(new feedly\\Mode\\SandBoxMode(), new feedly\\AccessTokenStorage\\AccessTokenSessionStorage());\n```\n\n***Standard Mode Example\n\n```php\n$feedly = new Feedly(new feedly\\Mode\\DeveloperMode(), new feedly\\AccessTokenStorage\\AccessTokenSessionStorage());\n```\n\n**Authentication:**\n\nCheck the [example](https://github.com/stakisko/feedly-api/blob/master/example/authentication.php).\n\nNote that not every Feedly action needs authentication. Passing a token is optional.\n\n**Endpoints**\n\n[Profile:](http://developers.feedly.com/v3/profile/)\n\n```php\n\n    $profile = $feedly-\u003eprofile();\n\n    var_dump($profile-\u003efetch());\n\n    $profile-\u003esetOptions(array(\n        'email'=\u003e'odysseus@ithaca.gr'\n    ));\n\n    $profile-\u003epersist();\n```\n\n[Categories:](http://developers.feedly.com/v3/categories/)\n\n```php\n\n    $categories = $feedly-\u003ecategories();\n\n    var_dump($categories-\u003efetch());\n\n    $categories-\u003echangeLabel($id, 'New Label');\n\n    $categories-\u003edelete($id);\n```\n\n[Entries:](http://developers.feedly.com/v3/entries/)\n\n```php\n\n    $entries = $feedly-\u003eentries();\n\n    var_dump($entries-\u003eget($id));\n\n```\n\n[Streams:](http://developers.feedly.com/v3/streams/)\n\n```php\n\n    $streams = $feedly-\u003estreams();\n    \n    //Retrieve ids from stream \n    var_dump($stream-\u003eget($id,\"ids\"));\n    \n    //Retrieve contents from stream \n    var_dump($stream-\u003eget($id,\"contents\"));\n\n```\n\n[Markers:](http://developers.feedly.com/v3/markers/)\n\n```php\n\n    $markers = $feedly-\u003emarkers();\n\n    var_dump($markers-\u003eget($id));\n\n    var_dump($markers-\u003egetUnreadCount());\n\n    $markers-\u003emarkArticleAsRead(array(\n        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_14499073085:c034:d32dab1f',\n        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_1449255d60a:22c3491:9c6d71ab'\n    ));\n\n    $markers-\u003emarkArticleAsUnread(array(\n        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_14499073085:c034:d32dab1f',\n        'TSxGHgRh4oAiHxRU9TgPrpYvYVBPjipkmUVSHGYCTY0=_1449255d60a:22c3491:9c6d71ab'\n    ));\n\n    $markers-\u003emarkFeedAsUnread(array(\n        'feed/http://feeds.feedburner.com/design-milk'\n    ));\n\n    $markers-\u003emarkFeedAsUnread(array(\n        'user/c805fcbf-3acf-4302-a97e-d82f9d7c897f/category/design',\n        'user/c805fcbf-3acf-4302-a97e-d82f9d7c897f/category/photography'\n    ));\n\n```\n\nContribute\n-------------\n* Create a branch\n* Add your models [here](src/feedly/Models)\n* Run tests with `phpunit`\n* Make a Pull Request\n\n\nLicence\n--------------------\n```\nThe MIT License (MIT)\n\nCopyright (c) 2014 Konstantinos Bariotis\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbariotis%2Ffeedly-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkbariotis%2Ffeedly-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkbariotis%2Ffeedly-api/lists"}