Download the PHP package linderp/sulu-mailing-list-bundle without Composer

On this page you can find all versions of the php package linderp/sulu-mailing-list-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sulu-mailing-list-bundle

SuluMailingListBundle

Sulu bundle to manage mailing lists, subscribe contacts (including via Sulu Forms), and send MJML-based newsletter mails from the admin UI.

Features

Requirements

Installation

  1. Install the bundle:

  2. If you are not using Symfony Flex, add the bundle to config/bundles.php:

  3. Register routes:

config/routes_admin.yaml

config/routes_website.yaml

  1. Configure MJML and sender settings in config/packages/sulu_mailing_list.yaml:

  2. Add the admin UI assets dependency (admin app):

assets/admin/package.json

  1. Import the admin UI bundle:

assets/admin/app.js

  1. Build admin assets:

Admin UI

The bundle registers admin resources and lists for:

Toolbar actions are provided for:

Website routes (unsubscribe / confirm)

The website routes are handled by NewsletterWebsiteController:

Both routes redirect to the configured unsubscribe/confirmation pages on the newsletter entity.

Sending newsletters

Sulu Forms integration

The bundle provides two dynamic field types:

When a form submission is saved via linderp/sulu-form-save-contact-bundle, selected newsletters are attached to the saved contact and handled by the subscription service.

Email templates

MJML + Twig templates live in Resources/views/mails/:

Templates are rendered through the MJML API and can be cached via sulu_mailing_list.mjml.caching.

Extending mail editor resources

The mail editor is built from four building blocks: resources, wrappers, contexts, and fields. When you add one, you must wire it in the correct places. The exact locations differ per type.

Where things live:

Notes:

Example: add a new field type quote

  1. XML: Resources/config/mail/types/quote.xml

  2. MJML: Resources/views/mails/components/quote/quote.mjml.twig

  3. PHP type: Mail/Field/Types/QuoteMailFieldType.php

Admin icon PNG generation

The bundle includes a helper script to generate PNGs from Font Awesome solid SVGs, with optional color variants.

Script location: vendor/linderp/sulu-mailing-list-bundle/scripts/generate-fontawesome-pngs.js

Default output folder: icons/ (in the project root, when run from the project root)

Default Font Awesome SVG folder: assets/admin/node_modules/@fortawesome/fontawesome-free/svgs/solid

Additional SVG folder included: vendor/linderp/sulu-mailing-list-bundle/Resources/social (e.g. social brand icons)

Examples (run from the project root):

Notes:

Additional Setup

Fonts

To add a font for the admin mail editor, create a class implementing MailFontInterface:

To render a selected font as a PNG for clients with limited webfont support, enable it explicitly. The font file referenced by the CSS URL is rasterized by the server-side Imagick extension, and the image is written below the configured public path:

The optional stroke width is measured in output pixels and is configured per font. It defaults to 0, so a webfont only receives a background-colored text outline when setStrokeWidth() is enabled. The outline is centered on the glyph edge. The default background color used for inherit or missing backgrounds can be configured with mjml.default_background_color and defaults to #FFFFFF.

This should be reserved for short decorative text. Live text remains the default because it is accessible and remains available when images are blocked.

Provide the CSS and referenced font files locally below public. The renderer does not fetch remote CSS or font files during mail rendering. Example CSS:


All versions of sulu-mailing-list-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-curl Version *
qferr/mjml-php Version ^2.0
sulu/sulu Version ^3.0.8
linderp/sulu-form-save-contact-bundle Version ^0.2 || dev-main
linderp/sulu-base-bundle Version ^0.2 || dev-main
symfony/config Version ^6.4 | ^7.1
symfony/dependency-injection Version ^6.2 | ^7.0
symfony/framework-bundle Version ^6.2 | ^7.0
symfony/http-foundation Version ^6.2 | ^7.0
symfony/http-kernel Version ^6.2 | ^7.0
symfony/intl Version ^6.2 | ^7.0
symfony/translation Version ^6.2 | ^7.0
symfony/security-core Version ^6.4 | ^7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package linderp/sulu-mailing-list-bundle contains the following files

Loading the files please wait ...