Download the PHP package garagist/mautic without Composer
On this page you can find all versions of the php package garagist/mautic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download garagist/mautic
More information about garagist/mautic
Files in garagist/mautic
Package mautic
Short Description Neos adapter for the Mautic API
License GPL-3.0-or-later
Informations about the package mautic
Garagist.Mautic
This package makes it possible to send personalized newsletters from Neos with Mautic, include forms from Mautic as a content element and add Mautic tracking. The forms are integrated via the Javascript API. All backend requests to Mautic are event-sourced. This ensures that the tasks are processed even if Mautic is not available.
Installation
Add the package in your site package:
The run composer update
in your project root.
Finally you need to run the following commands:
Configure Mautic
- Visit your Mautic installation and create a user for API.
- Enable API and HTTP basic auth. Optional: Be sure your Mautic installation is running on HTTPS for the sake of security.
- If you want to send test emails, please install our GaragistMauticApiBundle plugin.
- Skip this, if your website and Mautic are running on the same server:
- Enable CORS, add your site to
valid domains
.
- Enable CORS, add your site to
Configure Neos
The default values are set in Settings.Garagist.yaml
.
routeArgument
setting
htmlTemplate
sets the argument used to call the HTML
variant of the newsletter and send it to Mautic.
plaintextTemplate
sets the argument used to call the plaintext variant of the newsletter and send it to Mautic.
If you use Garagist.Mjml htmlTemplate
is automatically set to mjml
. The important thing is simply to respect the
loading order of the composer and load Garagist.Mjml after Garagist.Mautic.
api
setting
Set your credentials userName
and password
from Mautic. baseUrl
is the URL where Mautic can be reached via PHP.
This may be different from the publicUrl
(see next section) if Mautic is running in its own Docker container.
publicUrl
setting
Set here the URL where the Mautic installation is publicly accessible. This will be used for tracking, forms and links in the newsletter module.
enableTracking
setting
Enable the Javascript tracking code from Mautic. By default it is set to false
in the development context and to
true
in the production context.
mail
setting
trackingPixel
injects the tracking pixel from Mautic right before the closing body
tag.
form
setting
hide
sets the IDs of the forms you want to hide in the inpsector. You can pass an array (eg. [1, 2, 3]
) or an
integer
category
setting
newsletter
sets the ID of the category you want to use for the newsletters. Be aware that the category must exist in
Mautic.
testMail
setting
recipients
defines the email addresses you want to use for send test emails. You can pass an array (eg.
['[email protected]', '[email protected]']
) or an string (eg. '[email protected]'
). Note that the
GaragistMauticApiBundle plugin must be installed in your Mautic installation. Also the setting action.test
need to
set to true
.
segment
setting
lockPrefilled
set if an segment is prefilled from the creation/edit dialog, the user can't unselect it. Defaults totrue
mapping
: The ID of the segment to use for the newsletter. But you can also define an array/object to handle the segment in your own data provider.choose
: Add here to segments to choose from on creation/edit dialog. You can pass an array (eg.[1, 2, 3]
) or an integer.hide
: Add here the IDs of the segments you want to hide (eg. for unconfirmed contacts). You can pass an array (eg.[1, 2, 3]
) or an integer.
action
setting
In this group you can enable/disable folwing actions:
delete
Ability to delete emails, defaults totrue
publish
Ability to publish emails, defaults totrue
unpublish
Ability to unpublish emails, defaults totrue
send
Ability to send emails, defaults totrue
update
Ability to update emails, defaults totrue
edit
Ability to change subject, preview text and/or receiver, defaults totrue
test
Ability to send test (aka example) emails, defaults tofalse
. You need to install the GaragistMauticApiBundle plugin in your Mautic installation
Personalization
It is possible to send personalized emails. To use this, simply apply the following markup in the text on your page:
Availble fields are every field from contactfield, surounded by an # on both sides (case insensitive)
NodeTypes
Garagist.Mautic:Mixin.Email
Add this mixin to any document to enable the ability to send newsletter.
Garagist.Mautic:Mixin.Category
Add this mixin to any document to define this as a category for newsletters. This is used in the overview of the newsletter module.
Garagist.Mautic:Mixin.DoNotTrack
Add this mixin to any document to have the ability to disable the Mautic tracking for this specific page.
Garagist.Mautic:Mixin.Form
Add this mixin to a node to add the selector for Mautic forms. Be aware that you need to include the Fusion prototype Garagist.Mautic:Component.Form somewhere in your markup
All versions of mautic with dependencies
ext-json Version *
neos/neos-ui Version ^7.3 || ^8.0
neos/event-sourcing Version ^2.0
neos/neos Version ^7.3 || ^8.0
neos/fusion-form Version ^2.0
mautic/api-library Version ^3.0.0
carbon/eel Version ^2.0