View on GitHub


A PHP email parser

Home - Sponsors - API Documentation - Upgrading to 3.0 - Contributors

Upgrading to 3.0

Changes in 3.0 concentrate mostly on additions to error reporting, logging, updating the dependency injection library used, and migrating to php8+. Basic usage hasn’t changed, but more advanced header inspection has: specifically changes to HeaderPart classes, GenericHeader::getValue has changed to return the concatenated value of all child parts, rather than the value of the first part (this applies to any header that doesn’t have a more specialized header type – not an address, date, id, parameter, received or subject header).

For header parts, please inspect the documentation for that when upgrading, there are many changes there, mostly structurally to support error reporting:

Here’s a detailed list of changes: