thettler / pht
This is my package pht
Fund package maintenance!
thettler
Requires
- php: ^8.1
- league/flysystem: ^3.0
- react/event-loop: ^1.3
- symfony/console: ^6.0
- symfony/process: ^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- pestphp/pest: ^1.20
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2024-11-09 03:42:00 UTC
README
PHT: Something like Typescript but for PHP
❗ ❗ 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.