PHP code example of r94ever / laravel-keyword-analytics

1. Go to this page and download the library: Download r94ever/laravel-keyword-analytics 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/ */

    

r94ever / laravel-keyword-analytics example snippets


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

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

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);

use Qmas\KeywordAnalytics\Facade as Analytic;

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

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

dd($results);

use Qmas\KeywordAnalytics\Analysis;

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

dd($results);

use Qmas\KeywordAnalytics\Analysis;

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

dd($results);
bash
php artisan vendor:publish --provider="Qmas\KeywordAnalytics\KeywordAnalyticsServiceProvider"