PHP code example of izica / bitrix-seo-tools

1. Go to this page and download the library: Download izica/bitrix-seo-tools 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/ */

    

izica / bitrix-seo-tools example snippets




    <head>
        <?$APPLICATION->ShowHead();

BitrixSeoTools::title('Page Title');
BitrixSeoTools::description('Page Description');
BitrixSeoTools::keywords('page, bitrix, seo');
BitrixSeoTools::image('someurl/image.jpg');

BitrixSeoTools::title('Page Title')
	->description('Page Description')
	->keywords('page, bitrix, seo')
	->image('someurl/image.jpg');

BitrixSeoTools::opengraph()
    ->title('Title')
    ->description('Description')
    ->image('image.jpg');

BitrixSeoTools::custom()
    ->add(['charset' => 'utf-8'])
    ->add([
        'http-equiv' => 'Content-Type'
        'content' => 'text/html; charset=UTF-8'
    ]);

<a href="<?=BitrixSeoTools::share()->facebook();