1. Go to this page and download the library: Download ordinary9843/meta-master 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/ */
ordinary9843 / meta-master example snippets
Ordinary9843\MetaMaster;
$metaMaster = new MetaMaster();
/**
* Set connection time (in seconds).
*/
$metaMaster->setConnectTimeout(5);
$metaMaster->setTimeout(5);
/**
* Analyzing the meta tags from website.
*
* Output: [
* 'title' => '',
* 'charset' => '',
* 'keywords' => '',
* 'description' => '',
* 'viewport' => '',
* 'author' => '',
* 'copyright' => '',
* 'robots' => '',
* 'og' => [],
* 'twitter' => []
* ]
*/
$metaMaster->parse('https://github.com/ordinary9843');
/**
* Get all messages.
*
* Output: [
* '[INFO] Message.',
* '[ERROR] Message.'
* ]
*/
$metaMaster->getMessages();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.