PHPackages                             chadhutchins/oauth2-suitecrm - 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. chadhutchins/oauth2-suitecrm

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

chadhutchins/oauth2-suitecrm
============================

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

1.0.3(4y ago)211MITPHP

Since Sep 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chadhutchins/oauth2-suitecrm)[ Packagist](https://packagist.org/packages/chadhutchins/oauth2-suitecrm)[ RSS](/packages/chadhutchins-oauth2-suitecrm/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

SuiteCRM Provider for OAuth 2.0 Client
======================================

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

[![Latest Stable Version](https://camo.githubusercontent.com/9f7e6913da90a0966c81ad09243dbf0ab7c86454ba976a7a5522c72a93b1adff/68747470733a2f2f706f7365722e707567782e6f72672f636861646875746368696e732f6f61757468322d737569746563726d2f762f737461626c65)](https://packagist.org/packages/chadhutchins/oauth2-suitecrm)[![Total Downloads](https://camo.githubusercontent.com/0e284429992f24aa1013d53c7e2aef6242a482e2561b386a3aa79ed1e47376f7/68747470733a2f2f706f7365722e707567782e6f72672f636861646875746368696e732f6f61757468322d737569746563726d2f646f776e6c6f616473)](https://packagist.org/packages/chadhutchins/oauth2-suitecrm)[![License](https://camo.githubusercontent.com/d08d05acc2ff953a6e744644c8f85350316cde12aae833fc3c036da562216b5d/68747470733a2f2f706f7365722e707567782e6f72672f636861646875746368696e732f6f61757468322d737569746563726d2f6c6963656e7365)](https://packagist.org/packages/chadhutchins/oauth2-suitecrm)

This package provides SuiteCRM 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 chadhutchins/oauth2-suitecrm

```

### Usage

[](#usage)

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

### Authorization Code Flow

[](#authorization-code-flow)

```
$provider = new \League\OAuth2\Client\Provider\GenericProvider([
    'clientId'                => 'SuiteCRM Client ID',    // The client ID assigned to you by the provider
    'clientSecret'            => 'SuiteCRM Client Secret',    // The client password assigned to you by the provider
    'redirectUri'             => 'https://my.example.com/your-redirect-url/',
    'urlAuthorize'            => 'https://your-suitecrm-instance.com/Api/authorize', // not used but still required by library
    'urlAccessToken'          => 'https://your-suitecrm-instance.com/Api/access_token',
    'urlResourceOwnerDetails' => 'https://your-suitecrm-instance/Api/V8/meta/modules',
]);

try {

    // Try to get an access token using the resource owner password credentials grant.
    $accessToken = $provider->getAccessToken('password', [
        'username' => 'suitecrm_username',
        'password' => 'suietcrm_password'
    ]);

} catch (\League\OAuth2\Client\Provider\Exception\IdentityProviderException $e) {

    // Failed to get the access token
    exit($e->getMessage());

}
```

### Managing Scopes

[](#managing-scopes)

SuiteCRM does not support scopes at this time. Limit access using ACL controls on the user you authenticate with.

Testing
-------

[](#testing)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/chadhutchins/oauth2-suitecrm/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Nile Suan](https://github.com/nilesuan)
- [All Contributors](https://github.com/chadhutchins/oauth2-suitecrm/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/multidimension-al/oauth2-shopify/blob/master/LICENSE) for more information.

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

4

Last Release

1641d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

clientoauthoauth2authorizationauthorisationSuiteCRM

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/chadhutchins-oauth2-suitecrm/health.svg)

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

###  Alternatives

[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[omines/oauth2-gitlab

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

37703.9k11](/packages/omines-oauth2-gitlab)

PHPackages © 2026

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