What factors should be considered when choosing between Symfony and Laravel frameworks for a PHP program handling SOAP services?

When choosing between Symfony and Laravel frameworks for a PHP program handling SOAP services, factors to consider include the project requirements, familiarity with the frameworks, community support, performance, scalability, and ease of integration with SOAP services.

// Example PHP code snippet using Symfony framework for handling SOAP services

use Symfony\Component\Serializer\Encoder\XmlEncoder;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer;

$serializer = new Serializer([new ObjectNormalizer()], [new XmlEncoder()]);

// Serialize an object to XML
$data = $serializer->serialize($object, 'xml');

// Deserialize XML data to an object
$object = $serializer->deserialize($data, 'App\Entity\YourEntityClass', 'xml');