Download the PHP package vsimke/article-finder without Composer
On this page you can find all versions of the php package vsimke/article-finder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vsimke/article-finder
More information about vsimke/article-finder
Files in vsimke/article-finder
Package article-finder
Short Description Framework-agnostic PHP package for finding articles via Bing and Google SERP scraping using a chain-of-responsibility finder pattern.
License MIT
Informations about the package article-finder
Article Finder
A framework-agnostic PHP package for finding published articles via Bing and Google SERP scraping, using a chain-of-responsibility finder pattern.
Given a site domain and article title, the package queries Bing first and falls back to Google if no sufficiently similar result is found. You can swap or extend the chain with your own finders.
Requirements
- PHP 8.2+
- Guzzle 7+
Installation
Usage
Default chain (Bing → Google)
ArticleFinder::find() returns array<string, string> on success or false when no match is found across the whole chain.
Dependency injection
Scraper options
Pass a custom ClientInterface or override the config array to control transport:
Custom finder chain
Build your own chain by extending Finder and wiring it with setFinder():
How it works
A result is considered a match when similar_text() similarity between the SERP title and the search title exceeds 70%.
Note on fragility: SERP markup changes regularly. The parser fixture tests in
tests/Unit/are the safety net — update the fixtures if Bing or Google changes their HTML structure.
Development
Run tests
Static analysis
Code style (PSR-12)
Rector
Release
The script auto-detects the latest vX.Y.Z tag, bumps the requested segment, prompts for confirmation, then tags and pushes.
License
MIT — see LICENSE.