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
Requires
- php: ^5.3.3 || ^7.0
- nette/php-generator: v2.6
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(); }