Laravel-Mautic-API is a free and open-source marketing automation API that connects Laravel or Lumen applications to Mautic. It enables marketing teams to automate campaigns, manage leads, and track customer interactions. The API integrates with Mautic's configuration settings and requires PHP 5.5 or newer with cURL support.
git clone https://github.com/princealikhan/laravel-mautic-api.gitThe laravel-mautic-api is a free and open-source marketing automation API designed to streamline the integration between Laravel applications and Mautic, a leading open-source marketing automation platform. This skill allows developers to automate marketing tasks, manage campaigns, and track customer interactions efficiently. By leveraging this API, teams can enhance their marketing workflows and improve overall productivity. One of the key benefits of the laravel-mautic-api is its ability to save time by automating repetitive marketing tasks. While specific time savings are currently unknown, the intermediate complexity of the implementation suggests that developers can expect a relatively quick setup time of approximately 30 minutes. This skill is particularly valuable for developers and product managers looking to enhance their marketing strategies without the need for extensive manual input. This skill is well-suited for marketing teams, developers, and AI practitioners who are involved in workflow automation. By integrating the laravel-mautic-api into their existing systems, users can create more efficient marketing campaigns, track performance metrics, and respond to customer needs in real-time. For instance, a marketing team could use this API to automatically segment their audience based on user behavior, allowing for more targeted and effective campaigns. Implementing the laravel-mautic-api requires an intermediate level of expertise in Laravel and familiarity with API integrations. As organizations increasingly adopt AI-first workflows, this skill becomes essential for automating marketing processes, enabling teams to focus on strategic initiatives rather than manual tasks. By incorporating the laravel-mautic-api into their tech stack, businesses can leverage the power of AI automation to optimize their marketing efforts.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/princealikhan/laravel-mautic-apiCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I'm using the Laravel-Mautic-API to integrate my [COMPANY]'s Laravel application with Mautic. I need to [ACTION] (e.g., create a new campaign, update lead data, track customer interactions). Can you provide a step-by-step guide and example code for this specific task in [INDUSTRY]?
## Laravel-Mautic-API Integration Guide for [COMPANY]
### Step 1: Install the Package
```php
composer require laravel-mautic-api/laravel-mautic-api
```
### Step 2: Configure the API
Add the following to your `.env` file:
```env
MAUTIC_API_URL=https://[COMPANY].mautic.com
MAUTIC_API_USERNAME=your_username
MAUTIC_API_PASSWORD=your_password
```
### Step 3: Create a New Campaign
```php
use LaravelMauticApi\MauticApi;
$mautic = new MauticApi(\Config::get('mautic.api_url'), \Config::get('mautic.api_username'), \Config::get('mautic.api_password'));
$campaignData = [
'name' => 'Summer Promotion 2023',
'description' => 'Promote summer products to increase sales',
'isPublished' => true,
];
$campaign = $mautic->campaigns()->create($campaignData);
// Output the campaign ID
print_r($campaign->getId());
```
### Step 4: Track Customer Interactions
```php
$contactId = 123; // Replace with actual contact ID
$eventData = [
'eventType' => 'email_open',
'eventDate' => date('Y-m-d H:i:s'),
'properties' => [
'email' => 'customer@example.com',
'subject' => 'Summer Promotion',
],
];
$mautic->contacts()->addEvent($contactId, $eventData);
```