PHPackages                             infusionweb/laravel-marketo-rest-api - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. infusionweb/laravel-marketo-rest-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

infusionweb/laravel-marketo-rest-api
====================================

Provides a Laravel 5 service provider and facade for Marketo REST API Client.

0.1.1(10y ago)1271.7k4MITPHPPHP &gt;=5.5.9

Since May 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/InfusionWeb/laravel-marketo-rest-api)[ Packagist](https://packagist.org/packages/infusionweb/laravel-marketo-rest-api)[ Docs](https://github.com/infusionweb/laravel-marketo-rest-api)[ RSS](/packages/infusionweb-laravel-marketo-rest-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Laravel 5 Marketo REST API Provider
===================================

[](#laravel-5-marketo-rest-api-provider)

[![Latest Stable Version](https://camo.githubusercontent.com/7ae52a87634a5a04f9cb05a5847814ed3a1416cb3af0600b7f82b0e7d9c5954a/68747470733a2f2f706f7365722e707567782e6f72672f696e667573696f6e7765622f6c61726176656c2d6d61726b65746f2d726573742d6170692f762f737461626c65)](https://packagist.org/packages/infusionweb/laravel-marketo-rest-api) [![Total Downloads](https://camo.githubusercontent.com/43a871ecd01badd670705302639d0256120eb47bdbdec46c1fdc552ccb5998b5/68747470733a2f2f706f7365722e707567782e6f72672f696e667573696f6e7765622f6c61726176656c2d6d61726b65746f2d726573742d6170692f646f776e6c6f616473)](https://packagist.org/packages/infusionweb/laravel-marketo-rest-api) [![Latest Unstable Version](https://camo.githubusercontent.com/76b2741a3c69ea9a7466cf2ac6e7208c7d946b65ffcd8db63a93cb749fe53489/68747470733a2f2f706f7365722e707567782e6f72672f696e667573696f6e7765622f6c61726176656c2d6d61726b65746f2d726573742d6170692f762f756e737461626c65)](https://packagist.org/packages/infusionweb/laravel-marketo-rest-api) [![License](https://camo.githubusercontent.com/18790c14ff2a5bac6f855bc1a40eff619d343cf8c8b91c6c127579bac6d7e69b/68747470733a2f2f706f7365722e707567782e6f72672f696e667573696f6e7765622f6c61726176656c2d6d61726b65746f2d726573742d6170692f6c6963656e7365)](https://packagist.org/packages/infusionweb/laravel-marketo-rest-api)

An enhanced wrapper for using Marketo REST API Client package in Laravel
------------------------------------------------------------------------

[](#an-enhanced-wrapper-for-using-marketo-rest-api-client-package-in-laravel)

This package provides a Laravel 5 service provider and facade for [dchesterton/marketo-rest-api](https://github.com/dchesterton/marketo-rest-api), which is a Composer package that serves as an "unofficial PHP client for the Marketo.com REST API."

When enabled and configured, this package allows a more convenient use of the *Marketo REST API Client* functionality, through a Laravel facade, as well as adding some configuration options for added ease of use.

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

[](#installation)

### Step 1: Composer

[](#step-1-composer)

Via Composer command line:

```
$ composer require infusionweb/laravel-marketo-rest-api
```

Or add the package to your `composer.json`:

```
{
    "require": {
        "infusionweb/laravel-marketo-rest-api": "~0.1.0"
    }
}
```

### Step 2: Register the Service Provider

[](#step-2-register-the-service-provider)

Add the service provider to your `config/app.php`:

```
'providers' => [
    //
    InfusionWeb\Laravel\Marketo\MarketoClientProvider::class,
];
```

### Step 3: Enable the Facade

[](#step-3-enable-the-facade)

Add the facade to your `config/app.php`:

```
'aliases' => [
    //
    'Marketo' => InfusionWeb\Laravel\Marketo\MarketoClientFacade::class,
];
```

### Step 4: Publish the package config file

[](#step-4-publish-the-package-config-file)

```
$ php artisan vendor:publish --provider="InfusionWeb\Laravel\Marketo\MarketoClientProvider"
```

You may now setup Marketo authentication and other preferences by editing the `config/marketo.php` file.

Usage Example
-------------

[](#usage-example)

```
