TP-to-PHP converter convert TypeScript definition to PHP code
Is usefully when you want use PHP-to-Javascript converter and you miss php definition of your framework .
The best way how to install TP-to-PHP is use a Composer:
php composer.phar require mostka/tstophp
try {
\tptophp\Converter::convert($tsFile, $phpFile);
}catch (\tptophp\UnexpectedSyntaxException $e){
echo $e->getFullMessage();
}