PHPackages                             siberfx/lara-meta - 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. siberfx/lara-meta

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

siberfx/lara-meta
=================

A package to manage Header Meta Tags for Laravel 10+

7.1.0(1mo ago)41.4kMITPHPPHP ^8.4

Since May 12Pushed 1mo agoCompare

[ Source](https://github.com/siberfx/lara-meta)[ Packagist](https://packagist.org/packages/siberfx/lara-meta)[ RSS](/packages/siberfx-lara-meta/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Laravel Meta Tags
=================

[](#laravel-meta-tags)

[![Latest Stable Version](https://camo.githubusercontent.com/9735f7de0fbd25b565041399eb6598d7c89c4e798477306b08f4a13278db4bd9/68747470733a2f2f706f7365722e707567782e6f72672f736962657266782f6c6172612d6d6574612f762f737461626c65)](https://packagist.org/packages/siberfx/lara-meta)[![Total Downloads](https://camo.githubusercontent.com/382e9a47410f8a69f6094ceae1beeb5b27ce4ba85cbbdfffad6d41fc2378d96d/68747470733a2f2f706f7365722e707567782e6f72672f736962657266782f6c6172612d6d6574612f646f776e6c6f616473)](https://packagist.org/packages/siberfx/lara-meta)[![Latest Unstable Version](https://camo.githubusercontent.com/fdddc41914869eba363f102de8477c2d6abbd536730c83cd4cdb5dff197cea2f/68747470733a2f2f706f7365722e707567782e6f72672f736962657266782f6c6172612d6d6574612f762f756e737461626c65)](https://packagist.org/packages/siberfx/lara-meta)[![License](https://camo.githubusercontent.com/bd832e8979065c94ab2e569c7d6723920cd7aab73b4ef94e7f4d9351e88f46b9/68747470733a2f2f706f7365722e707567782e6f72672f736962657266782f6c6172612d6d6574612f6c6963656e7365)](https://packagist.org/packages/siberfx/lara-meta)

With this package you can manage header Meta Tags from Laravel controllers.

---

Installation
------------

[](#installation)

- [Laravel MetaTags on Packagist](https://packagist.org/packages/siberfx/lara-meta)
- [Laravel MetaTags on GitHub](https://github.com/siberfx/lara-meta)

From the command line run

```
$ composer require siberfx/lara-meta

```

Meta Tags also ships with a facade which provides the static syntax for creating collections. You can register the facade in the `aliases` key of your `config/app.php` file if its Laravel 10.x.

```
'aliases' => [
    // ...
    'MetaTag'   => Siberfx\LaraMeta\Facades\MetaTag::class,

]
```

### Publish the configurations

[](#publish-the-configurations)

Run this on the command line from the root of your project:

```
$ php artisan vendor:publish --provider="Siberfx\LaraMeta\MetaTagsServiceProvider"

```

A configuration file will be publish to `config/meta-tags.php`.

Twitter Cards and OpenGraph
---------------------------

[](#twitter-cards-and-opengraph)

Various settings for these options can be found in the `config/meta-tags.php` file.

**Twitter Cards**

```
{!! MetaTag::twitterCard() !!}
```

**OpenGraph**

```
{!! MetaTag::openGraph() !!}
```

Examples
--------

[](#examples)

#### app/Http/Controllers/Controller.php

[](#apphttpcontrollerscontrollerphp)

```
