PHPackages                             srtfisher/open-graph-protocol-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. srtfisher/open-graph-protocol-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

srtfisher/open-graph-protocol-tools
===================================

Open Graph Protocol Helper tools to build meta tags

0.1(12y ago)0261MITPHPPHP &gt;=5.4

Since Aug 15Pushed 12y agoCompare

[ Source](https://github.com/srtfisher/open-graph-protocol-tools)[ Packagist](https://packagist.org/packages/srtfisher/open-graph-protocol-tools)[ Docs](https://github.com/srtfisher/open-graph-protocol-tools)[ RSS](/packages/srtfisher-open-graph-protocol-tools/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Open Graph Protocol Tools
=========================

[](#open-graph-protocol-tools)

[![Open Graph protocol](https://camo.githubusercontent.com/9bd236abde68b83fa707321e7525e0429a99800c2445ba93bb1dc70c15bbe40f/687474703a2f2f6f67702e6d652f6f70656e5f67726170685f70726f746f636f6c5f6c6f676f2e706e67 "Open Graph protocol logo")](https://camo.githubusercontent.com/9bd236abde68b83fa707321e7525e0429a99800c2445ba93bb1dc70c15bbe40f/687474703a2f2f6f67702e6d652f6f70656e5f67726170685f70726f746f636f6c5f6c6f676f2e706e67)

[Open Graph protocol](http://ogp.me/ "Open Graph protocol community site") enhances information associated with a webpage through key-value pairs included as `` elements in your HTML. This additional data is consumed by social sharing sites, populating a story preview for shared links and referenced objects in the social graph.

This project includes tools to validate and sanitize inputs before generating Open Graph protocol markup on your webpages. This project standardizes outputs for easy indexing by consuming agents. We also let you consume remote pages and attempt to parse the Open Graph tags there of.

Consuming agents
----------------

[](#consuming-agents)

### Facebook

[](#facebook)

[Facebook indexes Open Graph protocol markup](http://developers.facebook.com/docs/opengraph/ "Facebook Open Graph protocol") found on pages shared in a member's social news feed. This markup also enhances social news feed stories generated by the [Like button social plugin](http://developers.facebook.com/docs/reference/plugins/like/ "Facebook Like button") and [Facebook Share](http://developers.facebook.com/docs/share/).

Open Graph protocol markup turns webpages into objects within the Facebook social graph, increasing search exposure and uniquely classifying your site and story type within the social news feed.

The [Facebook Object Debugger](http://developers.facebook.com/tools/debug) displays a Facebook interpretation of your site's Open Graph protocol content.

### mixi Check

[](#mixi-check)

[Mixi indexes Open Graph protocol markup](http://groups.google.com/group/open-graph-protocol/browse_thread/thread/356d722abf70001d/397ec334ca87f122 "mixi Check Open Graph protocol Google Group announcement") in its [mixi Check](http://developer.mixi.co.jp/connect/mixi_graph_api/mixi_io_spec_top/check-api/) social sharing service.

### Google+ Snippet

[](#google-snippet)

[Google indexes Open Graph protocol markup](https://developers.google.com/+/plugins/+1button/#plus-snippet) to populate a Google+ activity post.

Structure
---------

[](#structure)

The Application includes a number of core objects in the Open Graph protocol. They are all located under the `OpenGraph` namespace.

**Objects**:

- `OpenGraph\Objects\Article`
- `OpenGraph\Objects\Book`
- `OpenGraph\Objects\Profile`
- `OpenGraph\Objects\Video`

**Media**:

- `OpenGraph\Media\Audio`
- `OpenGraph\Media\Image`
- `OpenGraph\Media\Video`

### Core Open Graph protocol

[](#core-open-graph-protocol)

Support for structured properties for image, video, and audio objects.

```
