Mautic API Library 4.0.0 Released With Modern HTTP Support and New Features

Mautic API Library 4.0.0 Released With Modern HTTP Support and New Features

Version 4.0.0 of the Mautic API Library introduces updates focused on modernising HTTP handling, improving reliability, and expanding API capabilities. The release replaces legacy components and aligns the library with current PHP standards.

A central change is the adoption of a PSR-18 compliant HTTP client, replacing the earlier cURL-based implementation. This allows developers to use compatible clients such as Guzzle or Symfony, making the library more flexible across different project architectures.

The update also raises the minimum requirement to PHP 8.0, aligning with newer Mautic versions and enabling stricter typing, improved performance, and more consistent code practices.

Logging functionality has been updated to follow the LoggerAwareInterface standard, using LoggerAwareTrait for more consistent behaviour. The release also adds support for managing point groups through the API, extending capabilities available in Mautic core.

Several issues have been addressed, including deprecation warnings in strlen() when handling null values, failures in getMauticVersion() due to case-sensitive headers, incorrect handling of empty DEC filter values, and authentication errors that were not properly flagged. Release details are available here.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Upcoming Events