PHP code example of kdaviesnz / seokeywords
1. Go to this page and download the library: Download kdaviesnz/seokeywords library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kdaviesnz / seokeywords example snippets
php
$content = "hello world goodbye world";
$keywordTool = new \kdaviesnz\seokeywords\SEOKeywords();
$count4Phrasewords = $keywordTool->getCount4PhraseWords($content);
$count3Phrasewords = $keywordTool->getCount3PhraseWords($content);
$count2Phrasewords = $keywordTool->getCount2PhraseWords($content);
var_dump($count4Phrasewords);
var_dump($count3Phrasewords);
var_dump($count2Phrasewords);
$lsi= $keywordTool->get_lsi_keywords("Trump");
var_dump($lsi);
$stopwords = $keywordTool->get_stop_words();