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-12-07 01:06:45 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);
}