PHP code example of generationtux / laravel-marketo-rest-api

1. Go to this page and download the library: Download generationtux/laravel-marketo-rest-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

generationtux / laravel-marketo-rest-api example snippets


// 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);




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