/TS-to-PHP

Typescript definition converter to PHP

Primary LanguagePHP

About

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 .

Installation and requirements

The best way how to install TP-to-PHP is use a Composer:

php composer.phar require mostka/tstophp

Usage

try {
    \tptophp\Converter::convert($tsFile, $phpFile);
}catch (\tptophp\UnexpectedSyntaxException $e){
	echo $e->getFullMessage();
}