Write Golang.. BUT wait.. In PHP style 🤝🧒
Install the dependency first
$ composer install
In this project folder, you can find Playground
directory.
The PHP script can be written with namespace just like when you using this Scarlets Framework. You can only use Golang's built-in function, because Selang is just a helper to write easy and oriented programming style.
When you want to compile, you need to specify the main script (ex: Playground/test.php
)
$ scarlets selang Playground/test.php
The CLI is controlled from routes/console.php
that will call the library on app/Library/Selang/Loader.php
.