Download the PHP package martinille/meta-tag-extraction without Composer
On this page you can find all versions of the php package martinille/meta-tag-extraction. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download martinille/meta-tag-extraction
More information about martinille/meta-tag-extraction
Files in martinille/meta-tag-extraction
Download martinille/meta-tag-extraction
More information about martinille/meta-tag-extraction
Files in martinille/meta-tag-extraction
Vendor martinille
Package meta-tag-extraction
Short Description PHP library for fetching and parsing meta tags from web pages using a given URL or HTML source.
License MIT
Package meta-tag-extraction
Short Description PHP library for fetching and parsing meta tags from web pages using a given URL or HTML source.
License MIT
Please rate this library. Is it a good library?
Informations about the package meta-tag-extraction
Meta Tag Extraction
A light-weight library for extracting meta tags from URL or HTML content.
It allows you to:
- get all meta tags from URL or HTML content (including
title
,charset
, andhtml[lang]
attribute), - set custom cache provider for caching the results of web scraping (using PSR-16
Psr\SimpleCache\CacheInterface
), - set custom HTTP client for web scraping (using PSR-18
Psr\Http\Client\ClientInterface
),
This library can be considered as an extended alternative for get_meta_tags() function.
Requirements
- PHP 8.1 or higher
- PHP DOM extension
Installation
Usage
Examples
- Extracting meta tags from HTML string: docs/MetaTagExtraction_html_example.php
- Extracting meta tags from a URL: docs/MetaTagExtraction_url_example.php
More examples: docs/index.md
Testing
Unit tests:
Unit tests with coverage:
All versions of meta-tag-extraction with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-dom Version *
guzzlehttp/guzzle Version ^7.9
psr/simple-cache Version ^3.0
ext-dom Version *
guzzlehttp/guzzle Version ^7.9
psr/simple-cache Version ^3.0
The package martinille/meta-tag-extraction contains the following files
Loading the files please wait ....