PHP code example of codeblog / seotags

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

    

codeblog / seotags example snippets

 php

w \CodeBlog\Seotags\Seotags();

echo $op->seotags(
    'SeoTags Hello World', 
    'Seotags makes it easy to tag your site and social media tags', 
    'https://codeblog.com.br',
    'https://www.codeblog.com.br/themes/codeblog/images/default.jpg'
    )->render();
 php

w \CodeBlog\Seotags\Seotags();

echo $op->twitterCard(
  "@codeblogbr",
  "@codeblogbr",
  "codeblog.com.br",
  "summary_large_image"
)->render();
 php

w \CodeBlog\Seotags\Seotags();

echo $op->openGraph(
  "CodeBlogBr",
  "pt_BR",
  "article"
)->render();
 php

w \CodeBlog\Seotags\Seotags();

echo $op->seotags(
    'SeoTags Hello World',
    'Seotags makes it easy to tag your site and social media tags',
    'https://codeblog.com.br',
    'https://www.codeblog.com.br/themes/codeblog/images/default.jpg'
    )
    ->twitterCard(
        "@codeblogbr",
        "@codeblogbr",
        "codeblog.com.br",
        "summary_large_image"
    )
    ->openGraph(
        "CodeBlogBr",
        "pt_BR",
        "article"
    )
    ->facebook(
        '792606257467777',
        '760921563967798'
    )->render();