❗ ❗ This is only a prototype and a Proof of concept. It is not meant to be used seriously and has a lot of bugs. You can read about it here PHT: Building Typescript for PHP. But feel free to contribute and spin the idea even further ❗ ❗
This is just a little proof of concept for everybody to play around. For a better explanation read the article on bitbench.dev - PHT: Building Typescript for PHP
You can install the package via composer:
composer require thettler/pht
To start the watcher
./vendor/bin/pht dev
by default, it will look inside the 'app' directory for any .pht files and compiles them into the '.pht' directory.
To enable auto-loading find your autoload.php
require and call right after the Thettler\Pht\PHT::autoload($loader)
.
$loader = require __DIR__.'/../vendor/autoload.php';
Thettler\Pht\PHT::autoload($loader);
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.