prostoroman / page-analyzer
Calculate frequency of words for html content for SEO
dev-master
2017-07-18 04:13 UTC
Requires
- php: >=5.6
- ladamalina/lingua-stem-ru: dev-master
- paquettg/php-html-parser: ^1.7
This package is not auto-updated.
Last update: 2025-02-02 05:09:52 UTC
README
Calculate frequency of words in html content (input string, file or URL).
$analyzer = new PageAnalyzer\Analyzer(); $stats = $analyzer->analyse('http://www.lipsum.com/'); var_dump($stats);
Options
Example, how to ignore content in noindex, exclude stop words from analysis and check presence in particular tags used by search engine algorythms in rankinkg.
$options = [ 'ignoreNoindex' => true, 'stopWords' => ['в', 'и', 'от', 'для'], 'checkTags' => ['title', 'keywords', 'description', 'a', 'b,strong', 'h1,h2,h3,h4,h5,h6'] ]; $analyzer = new PageAnalyzer\Analyzer(['stopWords' => $stopWords]); var_dump($stats);
Please check: the demo here
Would appreciate any contributions. Thank you!