composer require dompdf/dompdf
// include autoloader
require_once 'dompdf/autoload.inc.php';
// somewhere early in your project's loading, require the Composer autoloader
// see: http://getcomposer.org/doc/00-intro.md
require 'vendor/autoload.php';