Natural language processing applied to search engine optimization
$dataforseo = new \aitor\seobiro\Dataforseo({EMAIL},{KEY});
$results = $dataforseo->get_organic_results("aitor rodriguez");
// No need to initiate, just place the key.json in the main directory.
$seobiro = new \aitor\seobiro\Seobiro();
$url = "https://aitor.me";
$content = $seobiro->getUrl($url);
$text = $seobiro->getText($content);
$language = $seobiro->getLanguage($text);
$tokens = $seobiro->getTokens($text);
$normalized = $seobiro->getNormalizedTokens($tokens);
$tokens = $seobiro->getStemmedTokens($tokens);
$seobiro->removeStopWords($normalized,$language);
$frequency = $seobiro->getFrequencyDistribution($normalized)
$frequency->getKeyValuesByWeight();
$description = $seobiro->getDescription($content);
$title = $seobiro->getTitle($content);
$headers = $seobiro->getHeaders($content);
$GoogleEntities = $seobiro->getGoogleEntities($text);
$GoogleSentiment = $seobiro->getGoogleSentiment($text);
If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.
src/
example/
Via Composer
$ composer require aitor/seobiro
If you discover any security related issues, please email soy[at]aitor.me instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.