https://github.com/invokable/laravel-fullfeed
Extracts the main content from web pages for use in feed readers
https://github.com/invokable/laravel-fullfeed
Last synced: 5 months ago
JSON representation
Extracts the main content from web pages for use in feed readers
- Host: GitHub
- URL: https://github.com/invokable/laravel-fullfeed
- Owner: invokable
- License: mit
- Created: 2025-12-22T05:02:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-01-05T08:04:35.000Z (5 months ago)
- Last Synced: 2026-01-05T20:31:26.619Z (5 months ago)
- Language: PHP
- Homepage: https://packagist.org/packages/revolution/laravel-fullfeed
- Size: 539 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FullFeed
[](https://github.com/invokable/laravel-fullfeed/actions/workflows/tests.yml)
## Overview
FullFeed is a Laravel package that extracts the main content from web pages for use in feed readers.
It uses site-specific rules defined in a JSON file to parse and retrieve exactly the content you need.
We've separated the FullFeed package from our private feed reader app and made it publicly available.
## Requirements
- PHP >= 8.4
- Since using `Dom\HTMLDocument`, must be 8.4 or higher.
- Laravel >= 12.x
## Installation
```shell
composer require revolution/laravel-fullfeed
```
Publish config and site definition files
```shell
php artisan vendor:publish --tag=fullfeed
```
`config/fullfeed.php` and `resources/fullfeed` will be created.
### Update site definition files
When updating via `composer update`, you can automatically publish the latest site definition files.
Add the following to the `composer.json`
```json
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan vendor:publish --tag=fullfeed-site --ansi --force"
],
```
## Configuration
If you want to add your own site rules, add them in `resources/fullfeed`.
## Usage
```php
use Revolution\Fullfeed\Facades\FullFeed;
$html = FullFeed::get($url);
```
## Testing
```php
use Revolution\Fullfeed\Facades\FullFeed;
FullFeed::expects('get')
->with('https://example.com/article/1')
->andReturn('
Main content');
// Your test code here
```
## License
MIT