What best practices should be followed when installing Swiftmailer using Composer in PHP development?

When installing Swiftmailer using Composer in PHP development, it is important to follow best practices to ensure a smooth installation process. One key practice is to specify the exact version of Swiftmailer to install in your composer.json file to prevent compatibility issues with other dependencies. Additionally, always run `composer update` after adding Swiftmailer to ensure that all dependencies are properly resolved.

// composer.json
{
    "require": {
        "swiftmailer/swiftmailer": "^6.0"
    }
}