princealikhan / lumen-mautic-api by princealikhan

Free and Open Source Marketing Automation API
2
2
2
Package Data
Maintainer Username: princealikhan
Maintainer Contact: princealikhan08@gmail.com (Prince Ali Khan)
Package Create Date: 2017-04-17
Package Last Update: 2017-07-20
Language: PHP
License: MIT
Last Refreshed: 2024-11-15 15:04:34
Package Statistics
Total Downloads: 2
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Mautic API in Laravel/Lumen.

Free and Open Source Marketing Automation API

Requirements

  • PHP 5.5.* or newer
  • cURL support

Mautic Setup

The API must be enabled in Mautic. Within Mautic, go to the Configuration page (located in the Settings menu) and under API Settings enable Mautic's API. You can also choose which OAuth2 protocol to use here. After saving the configuration, go to the API Credentials page (located in the Settings menu) and create a new client. Enter the callback/redirect URI that the request will be sent from. Click Apply then copy the Client ID and Client Secret to the application that will be using the API.

Register Service Provider in App\Providers\AppServiceProvider.php

$this->app->singleton('mautic',function ($app){
    $app->config('mautic');
    return $app->loadComponent('mautic','Princealikhan\Mautic\MauticServiceProvider','mautic');
});

Registering Application

In order to register you application with mautic ping this url this is one time registration.

http://your-app/mautic/application/register