PHPackages                             mathieu-dumoutier/oauth2-orcid - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mathieu-dumoutier/oauth2-orcid

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

mathieu-dumoutier/oauth2-orcid
==============================

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

16.7k1PHP

Since Sep 27Pushed 3y ago2 watchersCompare

[ Source](https://github.com/mathieu-dumoutier/oauth2-orcid)[ Packagist](https://packagist.org/packages/mathieu-dumoutier/oauth2-orcid)[ RSS](/packages/mathieu-dumoutier-oauth2-orcid/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

OAuth2 ORCID Client
===================

[](#oauth2-orcid-client)

This package provides ORCID OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

To install, use composer:

```
composer require mathieu-dumoutier/oauth2-orcid

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\MathieuDumoutier\OAuth2\Client\Provider\Orcid` as the provider.

knpuniversity/oauth2-client-bundle configuration example
--------------------------------------------------------

[](#knpuniversityoauth2-client-bundle-configuration-example)

```
knpu_oauth2_client:
    clients:
        orcid_oauth:
            type: generic
            provider_class: MathieuDumoutier\OAuth2\Client\Provider\Orcid
            provider_options:
                "scopes": '%env(ORCID_OAUTH_SCOPES)%'
                "use_member_api": '%env(ORCID_OAUTH_SANDBOX_MODE)%'
                "sandbox_mode": '%env(ORCID_OAUTH_MEMBER_API)%'
                "api_version": '%env(ORCID_OAUTH_API_VERSION)%'
            client_id: '%env(ORCID_APP_ID)%'
            client_secret: '%env(ORCID_APP_SECRET)%'
            redirect_route: orcid_check
            redirect_params: {}
            use_state: false
```

You must define the 6 environment variables :

- ORCID\_APP\_ID
- ORCID\_APP\_SECRET
- ORCID\_OAUTH\_SCOPES (see )
- ORCID\_OAUTH\_SANDBOX\_MODE (0 or 1)
- ORCID\_OAUTH\_MEMBER\_API (0 or 1)
- ORCID\_OAUTH\_API\_VERSION (v2.0, v2.1 or v3.0)

You must create the route "orcid\_check".

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7883b2c582d55dda0ef0c937bd91940105d128c102b0bcaf47879e257a9b7159?d=identicon)[neothone](/maintainers/neothone)

---

Top Contributors

[![neothone](https://avatars.githubusercontent.com/u/13251143?v=4)](https://github.com/neothone "neothone (13 commits)")

### Embed Badge

![Health badge](/badges/mathieu-dumoutier-oauth2-orcid/health.svg)

```
[![Health](https://phpackages.com/badges/mathieu-dumoutier-oauth2-orcid/health.svg)](https://phpackages.com/packages/mathieu-dumoutier-oauth2-orcid)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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