2017 © Pedro Peláez
 

library hyena

A Web Scraper for Laravel 5

image

jeroenherczeg/hyena

A Web Scraper for Laravel 5

  • Friday, August 26, 2016
  • by jeroenherczeg
  • Repository
  • 1 Watchers
  • 7 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

A Web Scraper for Laravel 5

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors., (*2)

Install

Via Composer, (*3)

``` bash $ composer require jeroenherczeg/hyena, (*4)


Next, you must install the service provider: ``` php // config/app.php 'providers' => [ ... Jeroenherczeg\Hyena\HyenaServiceProvider::class, ];

And add facade:, (*5)

``` php // config/app.php 'aliases' => [ ... Jeroenherczeg\Hyena\Facades\Hyena::class, ];, (*6)


## Usage ``` php $result = Hyena::visit('https://github.com')->extract(['name', 'images']); $result = Hyena::visit('https://github.com')->extract(['name', 'images'], [ 'min_image_width' => 50, // optional, minimal width of picture in px 'min_image_height' => 50, // optional, minimal height of picture in px 'min_image_filesize' => 16000, // optional, minimal filesize of picture in bytes 'limit_images' => 10 // optional, max count of images to return ]);

``` php [ 'name' => 'Github', 'images' => [ 'https://avatars1.githubusercontent.com/u/759412?v=3&s=40', 'https://assets-cdn.github.com/images/spinners/octocat-spinner-128.gif', 'https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif' ] ], (*7)


## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*8)

Security

If you discover any security related issues, please email jeroen@herczeg.be instead of using the issue tracker., (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions