generationtux / laravel-marketo-rest-api by knieber

Laravel Marketo Rest Api
252,061
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-12-14 15:10:28
Package Statistics
Total Downloads: 252,061
Monthly Downloads: 5
Daily Downloads: 1
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'),
    ]
];