ordinary9843 / meta-master
Analyzing and crawling the meta tags of a static website
Installs: 11 690
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >7.1
- guzzlehttp/guzzle: ^6.5
Requires (Dev)
- phpunit/phpunit: >7.0
This package is auto-updated.
Last update: 2024-10-23 09:17:48 UTC
README
Intro
Analyzing and crawling the meta tags of a static website.
Requirements
This library has the following requirements:
- PHP 7.1+
Installation
Require the package via composer:
composer require ordinary9843/meta-master
Usage
Example usage:
<?php require './vendor/autoload.php'; use 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();
Testing
composer test
Licenses
(The MIT License)