PHPackages                             jwebkid/metahelper - 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. jwebkid/metahelper

ActiveLibrary

jwebkid/metahelper
==================

This is a library which helps web developers to better manage Open Graph, Twitter Cards and HTML Meta Data which are important for Search Engine Optimization.

1.0.0(11y ago)04.4k1MITPHP

Since Jul 7Pushed 11y agoCompare

[ Source](https://github.com/jwebkid/metahelper)[ Packagist](https://packagist.org/packages/jwebkid/metahelper)[ RSS](/packages/jwebkid-metahelper/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

\#MetaHelper

This is a library which helps web developers to better manage Open Graph, Twitter Cards and HTML Meta Data enabling them to implement Search Engine Optimization easier.

\##Installation Add the package to your `composer.json` and run `composer update` in your shell.

```
{
    require: {
        "jwebkid/metahelper": "dev-master"
    }
}

```

If you use Laravel you may also add an alias in your `app/config/app.php` file:

```
'aliases' => array(
    'App'             => 'Illuminate\Support\Facades\App',
    'Artisan'         => 'Illuminate\Support\Facades\Artisan',
    'Auth'            => 'Illuminate\Support\Facades\Auth',
    'Blade'           => 'Illuminate\Support\Facades\Blade',
    ...
    'MetaHelper'       => 'JWebKid\MetaHelper'
),

```

\##Quick Start ###Example 1 title("MetaHelper Rocks") -&gt;description("A small description...") -&gt;charset("UTF-8) -&gt;view(); ?&gt; ...

\##Meta Data
------------

[](#meta-data)

`MetaHelper` library cater for the following meta tags:

Meta TagDefault ValueHTML DisplayedSyntaxTitlenull```$helper->title("")`Descriptionnull```$helper->description("")`charsetUTF-8```$helper->charset("")`Nextnull```$helper->next("")`Prevnull```$helper->prev("")`Canonicalnull```$helper->canonical("")`\##Open Graph As mentioned, you can easily use `MetaHelper` to display [Open Graph](http://ogp.me/) information about your web page.

```
