PHPackages                             simonkub/oauth2-todoist - 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. simonkub/oauth2-todoist

ActiveLibrary

simonkub/oauth2-todoist
=======================

This package provides Todoist OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

1.0.0(5y ago)012MITPHPPHP ^7.4|^8.0

Since Dec 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/simonkub/oauth2-todoist)[ Packagist](https://packagist.org/packages/simonkub/oauth2-todoist)[ Docs](https://github.com/simonkub/oauth2-todoist)[ RSS](/packages/simonkub-oauth2-todoist/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Todoist Provider for OAuth 2.0 Client
=====================================

[](#todoist-provider-for-oauth-20-client)

[![Latest Version on Packagist](https://camo.githubusercontent.com/19e95d7c06fe259429f715faf9c27b674022bb723e3594573a5e628f5c0de993/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696d6f6e6b75622f6f61757468322d746f646f6973742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/simonkub/oauth2-todoist)[![Tests](https://github.com/simonkub/oauth2-todoist/workflows/Tests/badge.svg)](https://github.com/simonkub/oauth2-todoist/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/ef7c290fbd80770e24092e7237465732cf06c0a32a11a635b542f27a92ddee94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696d6f6e6b75622f6f61757468322d746f646f6973742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/simonkub/oauth2-todoist)

Todoist Sync API OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

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

[](#installation)

You can install the package via composer:

```
composer require simonkub/oauth2-todoist
```

Usage
-----

[](#usage)

```
// configure and create client
$client = new Simonkub\OAuth2\Client\Todoist([
    "clientId" => "CLIENT_ID",
    "clientSecret" => "CLIENT_SECRET",
    "redirectUri" => "REDIRECT_URI"
]);

// optionally set client scopes, defaults to "data:read"
$client->setDefaultScopes(["data:read"]);

// redirect to todoist login page
$loginPageUri = $client->getAuthorizationUrl();

// after login and beeing redirected back to your application
// read authorization code from request
$authorizationCode = $_GET['code'];

// exchange authorization code for token
$token = $client->getAccessToken("authorization_code", [
    "code" => $authorizationCode
]);

// read single resource
$response = $client->readResource("projects", $token);

// read multiple resources
$response = $client->readResources(["projects", "labels"], $token);

// write resource
$commands = [
    "type" => "item_add",
    "uuid" => uniqid(),
    "temp_id" => uniqid(),
    "args" => [
        "project_id" => "foo",
        "content" => "bar"
    ]
];
$response = $client->writeResources($commands, $token);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Simon Kubiak](https://github.com/simonkub)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1969d ago

### Community

Maintainers

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

---

Top Contributors

[![simonkub](https://avatars.githubusercontent.com/u/16416949?v=4)](https://github.com/simonkub "simonkub (2 commits)")

---

Tags

simonkuboauth2-todoist

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/simonkub-oauth2-todoist/health.svg)

```
[![Health](https://phpackages.com/badges/simonkub-oauth2-todoist/health.svg)](https://phpackages.com/packages/simonkub-oauth2-todoist)
```

###  Alternatives

[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)

PHPackages © 2026

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