This is my package pht

Fund package maintenance!
thettler

v0.0.1 2022-03-25 19:35 UTC

README

PHT: Something like Typescript but for PHP

Latest Version on Packagist Tests Total Downloads

❗ ❗ 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

Installation

You can install the package via composer:

composer require thettler/pht

Usage

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.

Autoload

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

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.