| Package Data | |
|---|---|
| Maintainer Username: | Sukohi |
| Maintainer Contact: | capilano.sukohi@gmail.com (Sukohi) |
| Package Create Date: | 2016-03-22 |
| Package Last Update: | 2017-02-17 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:16:25 |
| Package Statistics | |
|---|---|
| Total Downloads: | 201 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 1 |
| Total Forks: | 4 |
| Total Open Issues: | 1 |
A Laravel package to extract readable text from HTML.
This package is actually a wrapper class of feelinglucky/php-readability.
Execute composer command.
composer require sukohi/laravel-readability:2.*
Set the service provider in app.php
'providers' => [
Sukohi\LaravelReadability\LaravelReadabilityServiceProvider::class
]
and alias.
'aliases' => [
'LaravelReadability' => Sukohi\LaravelReadability\Facades\LaravelReadability::class
]
$readability = \LaravelReadability::make($html);
try {
$data = $readability->getContent();
dd($data)
} catch (\Exception $e) {
// Content not found
}
$readability = \LaravelReadability::make($html, 'Shift_JIS');
This package is licensed under the MIT License.
Copyright 2016 Sukohi Kuhoh