承接 iserter/php-goose 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

iserter/php-goose

Composer 安装命令:

composer require iserter/php-goose

包简介

PHP 8+ article/content extractor. replacement for scotteh/php-goose (Goose)

README 文档

README

scotteh/php-goose is no longer maintained, so I created this alternative that supports the recent PHP versions.

There may be some issues, but so far, it's working 'ok'. Feel free to contribute.

  • Extracts title, description, canonical URL, main image, and cleaned article text
  • Minimal dependencies; works in any PHP app (framework-agnostic)
  • DOMDocument + XPath heuristics similar to Goose/Readability techniques

Quick start

use Iserter\Goose\Goose;

$goose = new Goose();
$article = $goose->extract('https://example.com/some-article');

echo $article->getTitle();

You can also pass raw HTML:

$article = $goose->extract($html, 'https://iserter.com');

Installation

Add the path repository to your root composer.json and require dev-main while developing locally.

composer require iserter/php-goose dev-main

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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