micfai/marketo-php

PHP Library for Marketo's SOAP API

1.0.2 2016-01-07 14:42 UTC

This package is auto-updated.

Last update: 2024-10-29 04:09:25 UTC


README

Using the composer CLI:

composer require micfai/marketo-php

Or manually add it to your composer.json:

{
    "require": {
        "micfai/marketo-php": "^1"
    }
}

Laravel Providers

In config/app.php, register the service provider

Marketo\Laravel\MarketoServiceProvider::class,

Register the Facade (optional)

'Marketo'       => Marketo\Laravel\MarketoFacade::class

Publish the config

php artisan vendor:publish --provider="Marketo\Laravel\MarketoServiceProvider"

Set your env variables

MARKETO_ACCESS_KEY=xxxxxxxx
MARKETO_SECRET_KEY=xxxxxxxx
MARKETO_ENDPOINT=http://localhost/auth/callback

Access Marketo from the Facade or Binding

 $lead = Marketo::getLead('type','value');

 $lead = app('Marketo')->getLead('type','value');