generationtux / laravel-marketo-rest-api by knieber

Laravel Marketo Rest Api
252,002
0
20
Package Data
Maintainer Username: knieber
Package Create Date: 2016-11-02
Package Last Update: 2016-11-22
Language: PHP
License: MIT
Last Refreshed: 2024-04-17 15:11:57
Package Statistics
Total Downloads: 252,002
Monthly Downloads: 4
Daily Downloads: 0
Total Stars: 0
Total Watchers: 20
Total Forks: 0
Total Open Issues: 0

Laravel 5 Marketo Provider

Installation

composer require generationtux/laravel-marketo-rest-api

Add the service provide and facade to your config/app.php

// For Laravel

// Service Provider
'providers' => [
    ...
    GenTux\Artisan\Marketo\LaravelServiceProvider::class,
];

// Facade
'aliases' => [
    'Marketo' => GenTux\Artisan\Marketo\MarketoFacade::class,
];


// For Lumen

// app.php
$app->register(GenTux\Artisan\Marketo\LumenServiceProvider::class);

Publish the config file

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

If you're using Lumen and do not have access to publish a config, use the code below fo config and name it marketo.php:

<?php

return [
    'auth' => [
        'api_url' => env('MARKETO_API_URL'),
        'client_id' => env('MARKETO_CLIENT_ID'),
        'client_secret' => env('MARKETO_CLIENT_SECRET'),
    ]
];