2017 © Pedro Peláez
 

library phtml

simple_html_dom PHP Parser for Laravel

image

zjango/phtml

simple_html_dom PHP Parser for Laravel

  • Saturday, May 23, 2015
  • by zjango
  • Repository
  • 2 Watchers
  • 0 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

# PHtml

Installation

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

"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., (*2)

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

And finally add a new line to the aliases array:, (*3)

        '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();

The Versions

23/05 2015

dev-master

9999999-dev https://github.com/zjango/Phtml

simple_html_dom PHP Parser for Laravel

  Sources   Download

MIT

The Requires

 

17/04 2015

1.1.1

1.1.1.0 https://github.com/zjango/Phtml

Html Parser

  Sources   Download

MIT

The Requires