SVG to CDR converter
To convert vectors you could use Unicovertor, which is a command-line converter supporting many formats. https://sk1project.net/uc2/
Command in terminal to convert files is
uniconvertor image.svg image.cdr
In php you could then do
system('uniconvertor image.svg image.cdr');
Please note I used this one however it can be sometimes tricky to install on ubuntu, make sure you always have the most updated version (apt-get update).
Multiple distributions are available https://sk1project.net/uc2/download/