PHPackages                             neclimdul/oauth2-marketo - 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. neclimdul/oauth2-marketo

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

neclimdul/oauth2-marketo
========================

Marketo OAuth 2.0 support for the PHP League's OAuth2-Client

v2.0.3(4y ago)0111.2k↓35.7%1MITPHPPHP &gt;=7.3

Since Sep 27Pushed 4y agoCompare

[ Source](https://github.com/neclimdul/oauth2-marketo)[ Packagist](https://packagist.org/packages/neclimdul/oauth2-marketo)[ RSS](/packages/neclimdul-oauth2-marketo/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (7)Versions (16)Used By (1)

Marketo Provider for OAuth 2.0 Client
=====================================

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

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

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

This package is based on  and mostly just updated to support newer releases of dependencies.

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

[](#installation)

To install, use composer:

```
composer require neclimdul/oauth2-marketo

```

Usage
-----

[](#usage)

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

### Authorization Code Flow

[](#authorization-code-flow)

Marketo's REST APIs are authenticated with two-legged OAuth 2.0. We don't need to pass a redirectUri to the provider, but we do need to include a base url that will be used to request an access token.

```
