1. Go to this page and download the library: Download webforge/dom library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webforge / dom example snippets
$hiddenInput = Query::create('form.main', $this->html)->find('input[name="submitted"]');
// returns an instanceof Query with the html: <input type="hidden" name="submitted" value="true" />