2017 © Pedro Peláez
 

library readability-laravel

A Laravel package to extract readable text from HTML.

image

irelic/readability-laravel

A Laravel package to extract readable text from HTML.

  • Monday, December 4, 2017
  • by irelic
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

LaravelReadability

A Laravel package to extract readable text from HTML.
This package is actually a wrapper class of feelinglucky/php-readability., (*1)

Installation

Execute composer command., (*2)

composer require irelic/readability-laravel

Set the service provider in app.php, (*3)

'providers' => [
    Sukohi\LaravelReadability\LaravelReadabilityServiceProvider::class
]  

and alias., (*4)

'aliases' => [
        'LaravelReadability' => Sukohi\LaravelReadability\Facades\LaravelReadability::class
]

Basic Usage

$readability = \LaravelReadability::make($html);

try {

    $data = $readability->getContent();
    dd($data)

} catch (\Exception $e) {

    // Content not found

}

with Encoding

$readability = \LaravelReadability::make($html, 'Shift_JIS');

License

This package is licensed under the MIT License.
Copyright 2016 Sukohi Kuhoh, (*5)

The Versions

04/12 2017

dev-master

9999999-dev

A Laravel package to extract readable text from HTML.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi
by Dmitry Makeev

04/12 2017

2.1.0

2.1.0.0

A Laravel package to extract readable text from HTML.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi
by Dmitry Makeev

22/03 2016

2.0.0

2.0.0.0

A Laravel package to extract readable text from HTML.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi