Nejjednodušší je použít composer. S jeho pomocí stačí složce s Nette (tam kde je soubor composer.json) spustit příkaz.
/cesta/k/php /cesta/k/souboru/composer.phar require texy/texy
Pokud o composeru nic nevíte, v seznamu návodů najdete i návod jak používat composer.
<?php
declare(strict_types=1);
namespace App\Presenters;
use Nette;
final class HomepagePresenter extends Nette\Application\UI\Presenter
{
public function renderDefault(){
$texy = new \Texy;
$string = "Následující slovo bude **tučně**";
$this->template->html = $texy->process($string);
}
}