2017 © Pedro Peláez
 

library laravel-readability

A Laravel package to extract readable text from HTML.

image

sukohi/laravel-readability

A Laravel package to extract readable text from HTML.

  • Friday, February 17, 2017
  • by Sukohi
  • Repository
  • 1 Watchers
  • 3 Stars
  • 176 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 4 Versions
  • 3 % 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 sukohi/laravel-readability:2.*

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

17/02 2017

2.0.x-dev

2.0.9999999.9999999-dev

A Laravel package to extract readable text from HTML.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

17/02 2017

dev-master

9999999-dev

A Laravel package to extract readable text from HTML.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

17/02 2017

2.0.1

2.0.1.0

A Laravel package to extract readable text from HTML.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

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