Phplrt can be installed into any PHP application
using composer
dependency mananger.
Phplrt is available as composer repository and can be installed using the following command in a root of your project:
$ composer require phplrt/phplrt
Note: This command installs the entire project, including dependencies that are not required at runtime.
However, to eliminate unnecessary dependencies, you can use:
$ composer require phplrt/runtime
...and dependencies for development
$ composer require phplrt/compiler --dev
In order to access phplrt classes make sure to include vendor/autoload.php
in your file.
<?php
require __DIR__ . '/vendor/autoload.php';