1. Go to this page and download the library: Download kovah/laravel-html-meta 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/ */
kovah / laravel-html-meta example snippets
try {
$metaTags = \Kovah\HtmlMeta\Facades\HtmlMeta::forUrl('https://kovah.de')->getMeta();
} catch (\Kovah\HtmlMeta\Exceptions\InvalidUrlException $e) {
// the provided URL is invalid
} catch (\Kovah\HtmlMeta\Exceptions\UnreachableUrlException $e) {
// the website under this URL is not reachable
}
[
"title" => "Kovah.de - Web Development and Photography",
"generator" => "Hugo 0.58.2",
"viewport" => "width=device-width, initial-scale=1",
"description" => "Kovah - Web Development by Kevin Woblick",
"og:title" => "Kovah.de - Web Development by Kevin Woblick",
"og:description" => "Kovah - Web Development by Kevin Woblick",
"og:image" => "'https://kovah.de/kvh_social_1200x630.jpg'",
"og:url" => "'https://kovah.de/'/",
"og:site_name" => "Portfolio of Kevin Woblick",
"twitter:card" => "summary_large_image",
// ...
];