1. Go to this page and download the library: Download utlime/seo-meta-tags 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/ */
utlime / seo-meta-tags example snippets
$builder = new BuilderDelegate(
new CommonBuilder(),
new TwitterBuilder(),
new OpenGraphBuilder()
);
$header_chunk = $builder
->add('title', 'your title')
->add('description', 'your description')
->add('language', 'your language')
->add('canonical', 'your canonical url')
->add('image', 'your image url')
->build();
namespace Utlime\SeoMetaTags;
/**
* Interface BuilderInterface
* @package Utlime\SeoMetaTags
*/
interface BuilderInterface
{
/**
* Add property to builder
* @param string $name
* @param string $value
* @return $this
*/
public function add($name, $value);
/**
* Build content which based on properties
* @return string
*/
public function build();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.