swiftmailer/swiftmailer is abandoned
Deprecated as of 2021-11-30. Replacement: symfony/mailer. Source: swiftmailer/swiftmailer on Packagist.
Check a version:
evergreen check pkg:composer/swiftmailer/swiftmailer
Packagist marks swiftmailer/swiftmailer as abandoned and no longer maintained, and the author suggests using symfony/mailer instead. The Symfony project set Swiftmailer’s end of maintenance for the end of November 2021.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Deprecated |
| Severity | high |
| Ecosystem | php |
| Component | pkg:composer/swiftmailer/swiftmailer |
| Affected versions | vers:composer/* |
| Date from the source | 2021-11-30 |
| Replacement | symfony/mailer |
| Evidence last seen | 2026-10-19 |
| Reviewed | 2026-10-19 by arminazimi |
| Review due | 2027-01-17 (90 days after the last review) |
| Rule ID | php.package.swiftmailer.swiftmailer.abandoned |
Sources
- swiftmailer/swiftmailer on Packagist (accessed 2026-10-19)
- The end of Swiftmailer (Symfony Blog) (accessed 2026-10-19)
Migration
Constraints
- Preserve message construction, transport configuration, and delivery behavior while moving from Swiftmailer to Symfony Mailer.
- Keep composer.json, composer.lock, and any package that still requires swiftmailer/swiftmailer consistent after the replacement.
Steps
- Replace the dependency. Remove swiftmailer/swiftmailer from composer.json and require symfony/mailer (and any transport packages the project needs), then run
composer update. - Migrate Swiftmailer usages. Replace reported Swift_Mailer and Swift_Message requires, use statements, constructors, and newInstance calls with the Symfony Mailer Email and Mailer APIs.
Verification
composer validate && composer show symfony/mailer: Confirm the Composer project is valid and symfony/mailer is installed.composer validate && vendor/bin/phpunit: Validate the Composer project and run the PHPUnit suite with the replacement mailer.
Detected by
The php detector. See Detectors and Compatibility.
Related
Same ecosystem
- doctrine/cache is abandoned
- fzaninotto/faker is abandoned
- Laravel 10 is no longer supported
- Laravel 11 is no longer supported
- sensiolabs/security-checker is abandoned
- zendframework/zend-stdlib is abandoned
- PHP 7.0 is end-of-life
- PHP 7.1 is end-of-life
Data
This page is generated from registry/php.json, rule php.package.swiftmailer.swiftmailer.abandoned, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated