A cli to convert .htx (different components) files to .php
npm install php-htx-clisrc/pages/index.htx
``html`
Some page
src/layouts/Default.htx
`php
if(!isset($props["title"])) $props["title"] = "Page";
?>
src/other/HelloWorldButton.htx
`html
`src/other/HelloWorldButton.js
`js
function helloWorldMessage(){
alert("Hello, World!");
}
`If you have Htx installed you can run the following to convert the code and run it with php. This uses the default settings, but they can be changed (see documentation)
`shell
htx
cd out
php -S localhost:3000
cd ../
``