mostka/tstophp

Typescript definition converter to PHP

dev-master 2016-06-02 18:48 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:12:27 UTC


README

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();
}