santran/tstophp

Typescript definition converter to PHP

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/santran/tstophp

dev-master 2019-06-23 07:05 UTC

This package is not auto-updated.

Last update: 2025-09-23 13:10:14 UTC


README

TP-to-PHP converter convert TypeScript definition to PHP code

Installation and requirements

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

php composer.phar require santran/tstophp

Usage

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