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: 2024-11-07 00:58:23 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);
}