mapkyca/php-ogp

Simple PHP Open Graph Protocol parser library

Installs: 19 934

Dependents: 2

Suggesters: 0

Security: 0

Stars: 26

Watchers: 6

Forks: 3

Open Issues: 0

pkg:composer/mapkyca/php-ogp

1.1.0 2021-03-06 12:07 UTC

This package is auto-updated.

Last update: 2025-10-06 22:45:44 UTC


README

This is a very very simple PHP open graph parser.

Pass it the contents of a web page, and it'll spit back an associated array of open graph tags and the value.

Usage

Include the library and call Parser's ::parse() function.

Example:

	require_once('ogp/Parser.php');

	$content = file_get_contents("https://www.youtube.com/watch?v=EIGGsZZWzZA");
	
	print_r(\ogp\Parser::parse($content));

Installation

To install this in your project:

composer require mapkyca/php-ogp

Author

See