PHP code example of kelvysmoura / mtp

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

    

kelvysmoura / mtp example snippets


use MetaTagsPhp\Mtp;
$metatags = new Mtp();

use MetaTagsPhp\Mtp;
$metatags = new Mtp();

# Gerando tags html
$metatags->OpenGraph([
  "title" => "Meu Site"
]);

# Mostrando Tags
$metatags->showTags(); 
// resultado: <meta property="og:title" content="Meu Site" />

use MetaTagsPhp\Mtp;
$metatags = new Mtp();

# Gerando tags html
$metatags->MetaName([
  "author" => "Kelvys Moura"
]);

# Mostrando Tags
$metatags->showTags(); 
// resultado: <meta name="author" content="Kelvys Moura" />