承接 balpom/href 相关项目开发

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

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

balpom/href

最新稳定版本:v2.1.0

Composer 安装命令:

composer require balpom/href

包简介

Simple interface for HTTP links.

README 文档

README

Very simple interface for HTTP links with link mapping.

Href object

Href object implements very simple HrefInterface, which has two methods: link() and mapping(). This may be very useful for some website parsing (like web.archive.org, anonymouse.org, etc.), which work as webproxy and modify original site links.

Simple sample for http://ipmy.ru/, which proxying by http://web.archive.org/: link() method returned http://ipmy.ru/ string, mapping() method, as variant, returned http://web.archive.org/web/20230329035950/http://ipmy.ru/ string.

HrefCollection object

HrefCollection object implements very simple HrefCollectionInterface, which has three methods: getAll(), getByLink(string $uri) and getByMapping(string $uri), and contains collection of unique Href objects.

getAll() method returns array, which contain Href objects. getByLink($uri) and getByMapping($uri) methods returns Href objects or false, if collection not consist Href object with requested $uri.

Requirements

  • PHP >= 8.1

Installation

Using composer (recommended)

composer require balpom/href

License

MIT License See LICENSE.MD

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-28