2017 © Pedro PelĂĄez
 

library laravel-marketo-rest-api

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

image

infusionweb/laravel-marketo-rest-api

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

  • Thursday, May 26, 2016
  • by rkeppner
  • Repository
  • 2 Watchers
  • 0 Stars
  • 9,141 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

Laravel 5 Marketo REST API Provider

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

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, which is a Composer package that serves as an "unofficial PHP client for the Marketo.com REST API.", (*2)

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., (*3)

Installation

Step 1: Composer

Via Composer command line:, (*4)

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

Or add the package to your composer.json:, (*5)

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

Step 2: Register the Service Provider

Add the service provider to your config/app.php:, (*6)

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

Step 3: Enable the Facade

Add the facade to your config/app.php:, (*7)

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

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., (*8)

Usage Example

<?php

use Marketo;

$fields = [
    'email' => 'email@example.com',
    'firstName' => 'Example',
    'lastName' => 'User',
];

try {
    $result = Marketo::createOrUpdateLead($fields);
}
catch(\InfusionWeb\Laravel\Marketo\Exceptions\MarketoClientException $e) {
    die('We couldn’t save your information!');
}

For additional API documentation, see the original Marketo REST API Client documentation, as well as Marketo's own REST API documentation., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

26/05 2016

dev-master

9999999-dev https://github.com/infusionweb/laravel-marketo-rest-api

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

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api rest marketo

26/05 2016

0.1.1

0.1.1.0 https://github.com/infusionweb/laravel-marketo-rest-api

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

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api rest marketo

25/05 2016

0.1.0

0.1.0.0 https://github.com/infusionweb/laravel-marketo-rest-api

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

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api rest marketo