<?php
use Symfony\Component\Asset\UrlPackage;
use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy;
$versionStrategy = new StaticVersionStrategy('1.0.0', '%s?v%s');
$url = 'http://my-website.dev';
$package = new UrlPackage($url, $versionStrategy);
echo $package->getUrl('image.png');