承接 jagehring/laravel-keyword-analytics 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jagehring/laravel-keyword-analytics

Composer 安装命令:

composer require jagehring/laravel-keyword-analytics

包简介

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

README 文档

README

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 keyword in meta title.
  • 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

  • English
  • Chinese
  • Spanish
  • French
  • Indonesian
  • Japanese
  • Portuguese
  • Russian
  • Vietnamese

Requirements

  • PHP7.0+
  • ext-json
  • ext-intl

Installation

You can install the package via composer:

composer require jagehring/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();

// Or
$results = app('keyword-analytics')->fromRequest()->run()->getResults();

dd($results);

For Lumen

use Qmas\KeywordAnalytics\Analysis;

$results = app(Analysis::class)->run($keyword, $title, $description, $seo_title, $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);

Testing

composer tests

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.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-08