PHP code example of felipemateus / metatags
1. Go to this page and download the library: Download felipemateus/metatags 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/ */
felipemateus / metatags example snippets
'providers' => array(
....
FelipeMateus\Metatags\Providers\MetatagsProvider::class,
),
'aliases' => array(
....
'Metatags' => FelipeMateus\Metatags\Facades\MetatagsFacade::class
),
$getOGTags = true;
$metadata = Metatags::get("https://example.com/",$getOGTags);
OR
$metadata = Metatags::get("https://example.com/",true);
print_r($metadata);