PHPackages                             arianrashidi/pocketapi - 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. arianrashidi/pocketapi

AbandonedArchivedLibrary[API Development](/categories/api)

arianrashidi/pocketapi
======================

A simple PHP wrapper for the Pocket API.

v1.0.0(9y ago)5871MITPHPPHP ~7.0

Since Jan 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/arianrashidi/pocketapi)[ Packagist](https://packagist.org/packages/arianrashidi/pocketapi)[ Docs](https://github.com/ArianRashidi/PocketApi)[ RSS](/packages/arianrashidi-pocketapi/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP Pocket API
==============

[](#php-pocket-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0f556c02f1ab4638dc5e782c372f73328805e52abd95a4ce61f043b4a3baf4eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617269616e726173686964692f706f636b65746170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arianrashidi/pocketapi)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/258ce8e6da5816688cfd5b6d60259fcf85fd423eaac9c9575e407395452b5480/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617269616e726173686964692f706f636b65746170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/arianrashidi/pocketapi)[![Coverage Status](https://camo.githubusercontent.com/0f69453c16a43dd662293f7d2c4c402aac5762d29b40eb4672592c938bc60570/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f617269616e726173686964692f706f636b65746170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/arianrashidi/pocketapi/code-structure)[![Quality Score](https://camo.githubusercontent.com/e11f2640e1b2e06bc8b64942d6eff62af86ffc6de02cecd868037331e976c9a3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f617269616e726173686964692f706f636b65746170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/arianrashidi/pocketapi)[![Total Downloads](https://camo.githubusercontent.com/24e70c6e7ea8a02143a5a2f4b2ccd288a54a4fe48e787032b6d7b606861f9766/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617269616e726173686964692f706f636b65746170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arianrashidi/pocketapi)

A PHP client for the [Pocket](https://getpocket.com) API.

Install
-------

[](#install)

Via Composer

```
$ composer require arianrashidi/pocketapi
```

Usage
-----

[](#usage)

```
$pocket = new ArianRashidi\PocketApi\Pocket($consumerKey);
```

### Helpers

[](#helpers)

```
$pocket->setConsumerKey($consumerKey);
$pocket->getConsumerKey();
$pocket->setAccessToken($accessToken); // Required for addApi(), modifyApi() and retrieveApi().
$pocket->getAccessToken();
$pocket->setHttpClient(new GuzzleHttp\Client());
$pocket->getHttpClient();
```

### Authentication API

[](#authentication-api)

[Documentation](https://getpocket.com/developer/docs/authentication)

```
$pocket->authenticationApi()->obtainRequestToken($redirectUrl);
$pocket->authenticationApi()->authorizationUrl($requestToken, $redirectUrl);
$pocket->authenticationApi()->obtainAccess($requestToken);
```

### Add API

[](#add-api)

[Documentation](https://getpocket.com/developer/docs/v3/add)

```
$pocket->addApi()->single($url);
```

### Modify API

[](#modify-api)

[Documentation](https://getpocket.com/developer/docs/v3/modify)

```
$pocket->modifyApi()->send($actions);
```

### Retrieve API

[](#retrieve-api)

[Documentation](https://getpocket.com/developer/docs/v3/retrieve)

```
$pocket->retrieveApi()->get();
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Credits
-------

[](#credits)

- Arian Rashidi
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

3403d ago

### Community

---

Top Contributors

[![arianrashidi](https://avatars.githubusercontent.com/u/8995099?v=4)](https://github.com/arianrashidi "arianrashidi (4 commits)")[![exileed](https://avatars.githubusercontent.com/u/942898?v=4)](https://github.com/exileed "exileed (1 commits)")

---

Tags

apiapi-clientphpphp7pocketpocket-api

### Embed Badge

![Health badge](/badges/arianrashidi-pocketapi/health.svg)

```
[![Health](https://phpackages.com/badges/arianrashidi-pocketapi/health.svg)](https://phpackages.com/packages/arianrashidi-pocketapi)
```

###  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)
