albertotain / simple-html-dom
simple-html-dom plugin for CakePHP 3
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- cakephp/cakephp: ^3.5
Requires (Dev)
- phpunit/phpunit: ^5.7.14|^6.0
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);
}