承接 ordinary9843/meta-master 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ordinary9843/meta-master

最新稳定版本:v1.0.0

Composer 安装命令:

composer require ordinary9843/meta-master

包简介

Analyzing and crawling the meta tags of a static website

README 文档

README

build codecov

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)

统计信息

  • 总下载量: 11.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-19