public function get_site($site) { /* * One of the nift features built-in to Ornithopter is a user agent (CURL wrapper) * with a farily decent web crawler. This does require CURL to be installed though. */ // Explain a little bit echo '<h2>Crawling a website</h2>'; echo '<p>A nifty feature built into Ornithopter is crawling websites and interacting with APIs. With the io::agent() library and io::crawler() you should have no problem interacting with other RESTful APIs or crawling other websites if necessary.'; // Check if CURL is installed if (extension_loaded('curl')) { // Crawl a website var_dump(io::crawler()->crawl($site)); } }