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

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

kristenlk/oauth2-marketo
========================

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

v1.5(9y ago)4100.6k4[1 PRs](https://github.com/kristenlk/oauth2-marketo/pulls)2MITPHPPHP &gt;=5.5.0

Since Sep 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kristenlk/oauth2-marketo)[ Packagist](https://packagist.org/packages/kristenlk/oauth2-marketo)[ RSS](/packages/kristenlk-oauth2-marketo/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (2)

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

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

[![Latest Version](https://camo.githubusercontent.com/9fca9b5f48173eae066798e6e8521916adc8aa4c58698567d069e4b39cef309f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b72697374656e6c6b2f6f61757468322d6d61726b65746f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/kristenlk/oauth2-marketo/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b59ec5e59a6db27947cf24c053b2f4d35a6e6014abf582c81ce89cabda2d9442/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b72697374656e6c6b2f6f61757468322d6d61726b65746f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kristenlk/oauth2-marketo)[![Coverage Status](https://camo.githubusercontent.com/74e1a5d86f93b202938ae28e95cdea288b800885322542dde337524225b15ff8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6b72697374656e6c6b2f6f61757468322d6d61726b65746f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kristenlk/oauth2-marketo/code-structure)[![Quality Score](https://camo.githubusercontent.com/12ad6832bbaab19ea93f4ea96ae5c48247c1c4c80908df07a6aa8568bcb6f116/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b72697374656e6c6b2f6f61757468322d6d61726b65746f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kristenlk/oauth2-marketo)[![VersionEye](https://camo.githubusercontent.com/a3676a46bc188f15d1fd0cf0bfe405b01f7d8e9a8461b8a470a4bfe205bdc891/68747470733a2f2f696d672e736869656c64732e696f2f76657273696f6e6579652f642f727562792f7261696c732e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/5601995af5f2eb001700061d)[![Total Downloads](https://camo.githubusercontent.com/c5b7932d690474ca9269d12c94efcd251699773cafd4c426bfcbcf856687fd55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b72697374656e6c6b2f6f61757468322d6d61726b65746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kristenlk/oauth2-marketo)

This package provides Marketo 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 kristenlk/oauth2-marketo

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `\Kristenlk\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.

```
