Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PHP Class for create auto open graph meta tag for your site

Notifications You must be signed in to change notification settings

bamz3r/PHPOgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

We have created a new repository for this project: https://github.com/bamz3r/PHPOgraph.

PHPOgraph (v.0.0.1)

This repository contains the open source PHP Library that allows you to create open grap meta (og:) tag in PHP. Except as otherwise noted, the PHPOgraph is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)

Usage

The examples are a good place to start. The minimal you'll need to have is:

require 'phpograph/phpograph.inc.php';

// Initializing class
$og = new PHPOgraph(array(
					'title' => 'Example usage Open Graph php library',
					'url' => 'http://example.org/path/to/content/',
					'image' => 'http://example.org/path/to/image/file.jpg',
					'description' => 'Hey this is sample of Open Graph php library. you can add og: tag on your site wiyh this simple library',
					'site_name' => 'Open Graph test library'
					));
//show result
echo $og->meta;

Contributing

When commiting, keep all lines to less than 80 characters, and try to follow the existing style.

Before creating a pull request, squash your commits into a single commit.

Add the comments where needed, and provide ample explanation in the commit message.

Report Issues/Bugs

Bugs

Questions

About

PHP Class for create auto open graph meta tag for your site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages