To use, create an instance of Renderer and provide it the file path to the Fractal component library directory (the root of the Fractal project) and the URL to the assets directory (for the PathHelper to work correctly). Make sure you are using an Autoloader or are explicitly including the PHP files.
In WordPress you would want to create $view_engine in your functions.php
file.
$view_engine = new Renderer(
get_template_directory() . '/component-library/',
get_template_directory_uri() . '/component-library/assets'
);
// In some template file
$view_engine->render('@fractal-component-handle', ['data_prop' => 'value']);
If in another environment, just don't use the WP directory functions.