# Upgrading PHP from 8.1 to 8.2 in Mautic Docker Image for SendGrid Plugin

**URL:** <https://forum.mautic.org/t/upgrading-php-from-8-1-to-8-2-in-mautic-docker-image-for-sendgrid-plugin/36455>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [September 2, 2025, 8:01pm UTC](https://forum.mautic.org/t/upgrading-php-from-8-1-to-8-2-in-mautic-docker-image-for-sendgrid-plugin/36455 "2025-09-02T20:01:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaelplatero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rafaelplatero/32/9022_2.png) [@rafaelplatero](https://forum.mautic.org/u/rafaelplatero)\
**Post date:** [September 2, 2025, 8:01pm UTC](https://forum.mautic.org/t/upgrading-php-from-8-1-to-8-2-in-mautic-docker-image-for-sendgrid-plugin/36455/1 "2025-09-02T20:01:44Z")

</div>

**Your software**  
My Mautic version is: 5.2.4  
My PHP version is: 8.1  
My Database type and version is: 10.6.21-MariaDB-ubu2004

**Your problem**  
My problem is:

Hello everyone,

I’m currently migrating my legacy system (Mautic 4.4.13) to a fresh Mautic installation (5.2.4). I installed it without any issues using a Docker image. However, I noticed there isn’t a native plugin for integration with the SendGrid API.

While looking through the forum, I found a recommendation for the “sendgrid+api” plugin, but it requires PHP 8.2. The Docker image I used installed PHP version 8.1.

My question is: what’s the best way to handle this situation?

- Can I update to PHP 8.2 without breaking the existing installation?

- Or is there another way to connect to SendGrid via API?

Thanks in advance for your help! 🙂

---

<div class="post-metadata">

**Author:** ![lolcode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lolcode/32/12928_2.png) [@lolcode](https://forum.mautic.org/u/lolcode)\
**Post date:** [September 2, 2025, 8:14pm UTC](https://forum.mautic.org/t/upgrading-php-from-8-1-to-8-2-in-mautic-docker-image-for-sendgrid-plugin/36455/2 "2025-09-02T20:14:43Z")

</div>

I can’t answer on Sendgrid plugin as I am new to Mautic but I would suggest not to use PHP 8.1 for a new system install right now since it is out of security support.

I see that the official Mautic docker for 5.2.7 uses PHP 8.3 at the moment.

[https://hub.docker.com/layers/mautic/mautic/5.2.7-fpm/images/sha256-626aab53e533703b1f933c68fc962a7c370a46cfbf83ba6fca6805945675e70f](https://hub.docker.com/layers/mautic/mautic/5.2.7-fpm/images/sha256-626aab53e533703b1f933c68fc962a7c370a46cfbf83ba6fca6805945675e70f)

1. So if restarting your migration is possible then I would get a newer Docker image and work with that starting right away.

2. If it’s not possible or easy to restart that right now then I would probably try this:

- Take a backup/screenshot of your Sendgrid settings as needed
- Uninstall or deactivate the old plugin
- Continue the migration
- When done, update to PHP 8.3 and the latest Mautic 5.2 series, eg. 5.2.7 as of today
- Install the new plugin and update the settings - unlike your data that needs migration there are only a handful of settings to re-enter.
