1. Go to this page and download the library: Download cba85/php-seo-tag 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/ */
cba85 / php-seo-tag example snippets
use Seo\Tag as Seo;
$tags = []; // Your tags
$seoTag = new Seo($tags);
$seo = $seoTag->render();
echo $seo;
$siteTags = []; // General tags of your website
$pageTags = []; // Tags of your page
$seotag = new SeoTag($siteTags, $pageTags);
$seo = $seotag->render();
$tags['site_title'] => "The title of the website";
$tags['page_title'] => "The title of the page";
$tags['description'] => "The description of the page";