PHP code example of ikuzo / kirbypluginseo

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

    

ikuzo / kirbypluginseo example snippets


<!doctype html>
<html lang="en">
<head>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
    
   snippet('seo-head'); 

snippet('seo-head', [
  'title' => 'title',
  'description' => 'description',
  'ogTitle' => 'og title',
  'ogDesc' => 'og description',
  'ogImage' => 'og image',
  'noindex' => true,
  'canonical' => 'canonical-url'
]);