require_once('Smarty.class.php'); $smarty = Smarty::getInstance();
require_once('Mustache/Autoloader.php'); Mustache_Autoloader::register(); $mustache = new Mustache_Engine();In this example, we require the Mustache template engine library and create a new instance of it using the Mustache_Engine class. Mustache is another PHP template engine that allows for simple and easy-to-read template syntax. Both examples use getInstance to create new instances of their respective template engines. These libraries are part of PHP package libraries and can be added to your project through a package manager like Composer.