Just like Smarty.
Use composer:
{
"require": {
"fenom/fs-entity-loader": "1.*"
}
}
Add traits into your Fenom class:
class MyFenom extends Fenom {
use Fenom\EntityLoaderTrait;
use Fenom\FSEntityLoaderTrait;
}
$fenom->addPluginDir('./plugins');