定制 revolution/laravel-fullfeed 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

revolution/laravel-fullfeed

最新稳定版本:0.1.15

Composer 安装命令:

composer require revolution/laravel-fullfeed

包简介

Extracts the main content from web pages for use in feed readers

README 文档

README

tests

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

composer require revolution/laravel-fullfeed

Publish config and site definition files

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

        "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

use Revolution\Fullfeed\Facades\FullFeed;

$html = FullFeed::get($url);

Testing

use Revolution\Fullfeed\Facades\FullFeed;

FullFeed::expects('get')
    ->with('https://example.com/article/1')
    ->andReturn('<div>Main content</div>');

// Your test code here

License

MIT

统计信息

  • 总下载量: 349
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-22