Download the PHP package hypejunction/http-parser without Composer
On this page you can find all versions of the php package hypejunction/http-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hypejunction/http-parser
More information about hypejunction/http-parser
Files in hypejunction/http-parser
Download hypejunction/http-parser
More information about hypejunction/http-parser
Files in hypejunction/http-parser
Vendor hypejunction
Package http-parser
Short Description A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
License GPL-2.0-only
Homepage https://github.com/hypeJunction/http-parser
Package http-parser
Short Description A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
License GPL-2.0-only
Homepage https://github.com/hypeJunction/http-parser
Please rate this library. Is it a good library?
Informations about the package http-parser
HTTP Parser
Parses HTTP resources into serializable arrays of oEmbed-like metatags.
Features
- Parses HTTP resources into oEmbed-like arrays of metatags
- Extracts OpenGraph, Twitter card, JSON-LD (schema.org),
<link>,<meta>and<img>data - Discovers and resolves oEmbed endpoints (JSON and XML)
- Handy for rendering URL cards / link previews
Requirements
- PHP 8.1+
- Guzzle 7
Installation
Usage
Options
Security
Fetching user-supplied URLs is dangerous by nature. The parser blocks private/reserved networks, re-validates redirects, and caps response sizes by default, but you must still:
- Escape everything you render. All returned values are
attacker-controlled strings. Only render the oEmbed
htmlfield for an explicit allowlist of trusted providers, ideally in a sandboxed iframe. - Keep TLS verification on. Never pass
'verify' => falseto Guzzle. - Consider an egress proxy or IP pinning at the HTTP-client layer if DNS rebinding is in your threat model.
See SECURITY.md for the full threat model.
Sample Output
Development
All versions of http-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-dom Version *
ext-json Version *
ext-libxml Version *
ext-mbstring Version *
ext-simplexml Version *
guzzlehttp/guzzle Version ^7.5
guzzlehttp/psr7 Version ^2.4
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.0
ext-dom Version *
ext-json Version *
ext-libxml Version *
ext-mbstring Version *
ext-simplexml Version *
guzzlehttp/guzzle Version ^7.5
guzzlehttp/psr7 Version ^2.4
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.0
The package hypejunction/http-parser contains the following files
Loading the files please wait ...