PHPackages                             richardhj/oauth2-newsletter2go - 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. richardhj/oauth2-newsletter2go

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

richardhj/oauth2-newsletter2go
==============================

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

v2.0.1(7y ago)01.9k2LGPL-3.0-or-laterPHPPHP ^5.4|^7.0

Since Aug 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/richardhj/oauth2-newsletter2go)[ Packagist](https://packagist.org/packages/richardhj/oauth2-newsletter2go)[ RSS](/packages/richardhj-oauth2-newsletter2go/feed)WikiDiscussions v2.0 Synced 4w ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (2)

Newsletter2Go Provider for OAuth 2.0 Client
===========================================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/e526da2f9d802002e9bf2dd3da7a66fa2a066ef704b1d43057d042bf0c1f47bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696368617264686a2f6f61757468322d6e6577736c657474657232676f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/richardhj/oauth2-newsletter2go)![Software License](https://camo.githubusercontent.com/2bc95db9d4d6b319fe40fe1a46431a18f9684b30d516775115c5d0df6aa3e9b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4c47504c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Dependency Status](https://camo.githubusercontent.com/353368c8ef5285941333b8da979226b944f2bc285cee5e600d1e4e90d7b284a1/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f72696368617264686a3a6f61757468322d6e6577736c657474657232676f2f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/php/richardhj:oauth2-newsletter2go)

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

Install
-------

[](#install)

Via Composer

```
$ composer require richardhj/oauth2-newsletter2go
```

Usage
-----

[](#usage)

Use the auth key from your Newsletter2Go account to initiate the provider.

```
$provider = new Richardhj\Newsletter2Go\OAuth2\Client\Provider\Newsletter2Go([
    'authKey' => $authKey,
]);
```

Then use your login credentials to fetch an AccessToken instance.

```
$accessToken = $provider->getAccessToken(
    'https://nl2go.com/jwt',
    [
        'username' => $username,
        'password' => $password,
    ]
);
```

### Refreshing a token

[](#refreshing-a-token)

Initiate the provider as described before. Then:

```
$accessToken = $provider->getAccessToken(
    'https://nl2go.com/jwt_refresh',
    [
        'refresh_token' => $accessToken->getRefreshToken()
    ]
);
```

It is recommended to save the refresh\_token (`$refreshToken = $accessToken->getRefreshToken()`) in your application rather than the username and password. Nevertheless: Handle with care!

Visit [the official API documentation](https://docs.newsletter2go.com/#/Authorization) for reference.

License
-------

[](#license)

The GNU Lesser General Public License (LGPL).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~177 days

Total

6

Last Release

2706d ago

Major Versions

v1.0.x-dev → v2.0.02018-02-07

PHP version history (2 changes)v1.0.0PHP &gt;=5.4

v2.0.0PHP ^5.4|^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1284725?v=4)[Richard Henkenjohann](/maintainers/richardhj)[@richardhj](https://github.com/richardhj)

---

Top Contributors

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

---

Tags

newsletternewsletter2gooauth2oauth2-clientphp-leagueclientoauthoauth2authorizationauthorisationnewsletter2go

### Embed Badge

![Health badge](/badges/richardhj-oauth2-newsletter2go/health.svg)

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

###  Alternatives

[stevenmaguire/oauth2-keycloak

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

2306.4M37](/packages/stevenmaguire-oauth2-keycloak)[thenetworg/oauth2-azure

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

25310.7M73](/packages/thenetworg-oauth2-azure)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1152.7M11](/packages/patrickbussmann-oauth2-apple)[omines/oauth2-gitlab

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

37779.2k16](/packages/omines-oauth2-gitlab)[league/oauth2-instagram

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

781.1M44](/packages/league-oauth2-instagram)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

261.8M1](/packages/mollie-oauth2-mollie-php)

PHPackages © 2026

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