承接 patricksavalle/content-syndication 相关项目开发

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

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

patricksavalle/content-syndication

Composer 安装命令:

composer require patricksavalle/content-syndication

包简介

Helper library for dealing with HTML metadata retrieval, RSS, ATOM, URL parsing and normalization

README 文档

README

Library that contains utility funtions typically used for content syndication.

  • Extracting HTML metadata (og:tags, twitter:tags, etc.)
  • URL normalisation and absolutization
  • Text parsing and conversion
  • RSS/ATOM reading
  • Storing and retrieving at archive.org

It's in use for this production system: https://zaplog.pro (https://gitlab.com/zaplog)

Install with Composer

  • Update your composer.json to require patricksavalle/slim-request-params.

  • Run composer install to add slim-request-params your vendor folder.

    {
      "require": {
        "patricksavalle/php-content-syndication": "^0.1"
      }
    }
  • Include in your source.

    <?php
    
    require './vendor/autoload.php';

Usage

Retrieving HTML metadata

Returned URL's will be normalized.

return (new HtmlMetadata)("https://gizmodo.com/the-real-reason-gas-prices-are-so-high-right-now-1848088360");

Array
(
  [url] => https://gizmodo.com/the-real-reason-gas-prices-are-so-high-right-now-1848088360
  [title] => The Real Reason Gas Prices Are So High Right Now
  [description] => It's not the Biden administration's energy policies nor Big Oil illegally manipulating prices.
  [image] => https://i.kinja-img.com/gawker-media/image/upload/c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_1200/1aafc02b452854117b46237d555e4879.jpg
  [video] =>
  [video:type] =>
  [video:release_date] =>
  [video:duration] =>
  [video:series] =>
  [site_name] => Gizmodo
  [language] => en
  [rss] => https://gizmodo.com/rss
  [atom] =>
  [author] =>
  [copyright] =>
  [keywords] => Array
  (
    [0] => OPEC
    [1] => american petroleum institute
    [2] => Business
    [3] => Finance
    [4] => Primary sector of the economy
    [5] => Joe Biden
    [6] => Cartels
    [7] => Ed Markey
    [8] => Big Oil
    [9] => Clark Williams-Derry
    [10] => Price of oil
    [11] => Petroleum industry
    [12] => Chronology of world oil market events
    [13] => Petroleum
    [14] => Energy
    [15] => West Texas Intermediate
    [16] => Gizmodo
  ) 
)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固