PHP code example of aiseo / laravel-aiseo

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

    

aiseo / laravel-aiseo example snippets


use LaravelGPT\AiSeo\Facades\AiSeo;

$schema = AiSeo::article()
    ->title('Your Article Title')
    ->description('Your article description')
    ->author('Author Name')
    ->publishDate(now())
    ->generate();

use LaravelGPT\AiSeo\Facades\AiSeo;

$tags = AiSeo::openGraph()
    ->title('Your Page Title')
    ->description('Your page description')
    ->image('https://example.com/image.jpg')
    ->generate();

use LaravelGPT\AiSeo\Facades\AiSeo;

$tags = AiSeo::meta()
    ->title('Your Page Title')
    ->description('Your page description')
    ->keywords('keyword1, keyword2, keyword3')
    ->generate();

use LaravelGPT\AiSeo\Facades\AiSeo;

$analysis = AiSeo::analyze()
    ->content('Your content here')
    ->keywords(['keyword1', 'keyword2'])
    ->generate();

use LaravelGPT\AiSeo\Facades\AiSeo;

$analysis = AiSeo::realtime()
    ->url('https://example.com')
    ->analyze();

@seo([
    'title' => 'Your Page Title',
    'description' => 'Your page description',
    'keywords' => 'keyword1, keyword2, keyword3',
    'author' => 'Author Name',
    'publishDate' => now(),
    'image' => 'https://example.com/image.jpg'
])
bash
php artisan vendor:publish --provider="LaravelGPT\AiSeo\AiSeoServiceProvider"