Package Data | |
---|---|
Maintainer Username: | rkeppner |
Maintainer Contact: | russell.keppner@gmail.com (Russell Keppner) |
Package Create Date: | 2016-05-24 |
Package Last Update: | 2019-08-14 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:07:28 |
Package Statistics | |
---|---|
Total Downloads: | 271,186 |
Monthly Downloads: | 307 |
Daily Downloads: | 8 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 4 |
Total Open Issues: | 0 |
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."
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.
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"
}
}
Add the service provider to your config/app.php
:
'providers' => [
//
InfusionWeb\Laravel\Marketo\MarketoClientProvider::class,
];
Add the facade to your config/app.php
:
'aliases' => [
//
'Marketo' => InfusionWeb\Laravel\Marketo\MarketoClientFacade::class,
];
$ 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.
<?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.
The MIT License (MIT). Please see License File for more information.