zjango/phtml

simple_html_dom PHP Parser for Laravel
101
Install
composer require zjango/phtml
Latest Version:1.1.1
License:MIT
Last Updated:May 23, 2015
Links: GitHub  ·  Packagist
Maintainer: zjango

PHtml

========

Installation

To install the package, simply add the following to your Laravel installation's composer.json file

"require": {
	"laravel/framework": "5.*",
	"zjango/phtml": "dev-master"  
},

Run the usual composer update to pull the files. Then, add the following Service Provider to your providers array in your config/app.php config.

'providers' => array(
	...
	'Zjango\Phtml\PhtmlServiceProvider',
);

And finally add a new line to the aliases array:

		'Phtml'	=>	'Zjango\Phtml\Facades\Phtml',

Usage

		$html=Phtml::init('http://www.apple.com');
		$as = $html->find('a');
		$a = $html->find('a',0);
		$a = $html->find('a',-1);
		$a = $html->find('a',0);
		$href = $a->href();
		$text = $a->text();

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

610,259,779 9,704
laravel/framework

The Laravel Framework.

551,557,428 34,802
laravel/tinker

Powerful REPL for the Laravel framework.

462,518,693 7,436