albertotain/simple-html-dom

simple-html-dom plugin for CakePHP 3

dev-master 2019-04-06 12:23 UTC

This package is auto-updated.

Last update: 2021-11-06 18:34:46 UTC


README

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require albertotain/simple-html-dom

Cargar plugin

bin/cake plugin load simple-html-dom

Usar en controlador

use SimpleHtmlDom\Controller;

 public function suMetodo() {

    // Create DOM from URL or file
    $simpleHtml = new Controller\SimpleHtmlDomController;

    $html = $simpleHtml->file_get_html('http://URL/');

    dd($html);
}