r94ever/laravel-keyword-analytics

Analyze keywords in the content and make diagnostics to improve the seo score of the content.
4,322 2
Install
composer require r94ever/laravel-keyword-analytics
Latest Version:v3.0.3
PHP:^8.3
License:MIT
Last Updated:Jun 18, 2026
Links: GitHub  ·  Packagist
Maintainer: r94ever

Laravel Keyword Analytics

Analyze keywords in the content and make diagnostics to improve the seo score of the content.

Features

  • Check keyword length.
  • Check keyword density.
  • Check title length.
  • Check meta description length.
  • Check content length.
  • Check keyword in URL.
  • Check keyword in title.
  • Check keyword in first paragraph of content.
  • Check keyword in meta description.
  • Check images in content.
  • Check keyword in ALT attribute of image tags.
  • Check links in content.
  • Check keyword in TITLE attribute of links.
  • Check heading available in content.
  • Check keyword available in headings.

Language Supported

  • Any language supported by PHP Intl extension.

Requirements

  • PHP8.2+
  • ext-json
  • ext-intl

Installation

You can install the package via composer:

composer require r94ever/laravel-keyword-analytics

For Laravel

The Service Provider has automatically discovered. You don't need to do anything to register it.

If you need to change configurations of this package, run the following command:

php artisan vendor:publish --provider="Qmas\KeywordAnalytics\KeywordAnalyticsServiceProvider"

For Lumen

Copy config.php from vendor/qmas/laravel-keyword-analytics/config to config directory then rename to keyword-analytics.php

Open bootstrap/app.php then add the following code to Create Application section:

$app->configure('keyword-analytics');

And the following code to Register Service Providers section:

$app->register(QMAS\KeywordAnalytics\KeywordAnalyticsServiceProvider::class);

Usage

For Laravel

use Qmas\KeywordAnalytics\Facade as Analytic;

$results = Analytic::run($keyword, $title, $description, $html, $url)->getResults();

// Or
$results = app('keyword-analytics')->run($keyword, $title, $description, $html, $url)->getResults();

dd($results);

Or you can run instance from request (read config file to understand about this method)

use Qmas\KeywordAnalytics\Facade as Analytic;

$results = Analytic::fromRequest()->run()->getResults();

dd($results);

// Or
use Qmas\KeywordAnalytics\Analysis;

$results = app(Analysis::class)->fromRequest()->run()->getResults();

dd($results);

For Lumen

use Qmas\KeywordAnalytics\Analysis;

$results = app(Analysis::class)->run($keyword, $title, $description, $html, $url)->getResults();

dd($results);

Or you can run instance from request

use Qmas\KeywordAnalytics\Analysis;

$results = app(Analysis::class)->fromRequest()->run()->getResults();

dd($results);

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email vandt147@outlook.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

esign/laravel-seo

Manage SEO tags within your Laravel application

27,370 4
werxe/laravel-seo

Seo management for Eloquent models.

1,270 3
garf/laravel-title

Convenient seo-titles assembler for your web application

244 4
artesaos/seotools

SEO Tools for Laravel and Lumen

5,777,437 3,367
helori/laravel-seo

SEO tools to insert meta and structured-data in laravel projects

4,934 12