kekoapp/laravel-meta-tags
Larablocks Analysis
kekoapp/laravel-meta-tags works with Laravel 5 (latest release v5.4.3, Feb 15, 2017), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Feb 15, 2017)
- 0 downloads a month (needs 10,000)
- 3 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Feb 15, 2017.
- No releases in the last 12 months.
- First released: Aug 13, 2014.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 26, 2026.
| Install | |
|---|---|
composer require kekoapp/laravel-meta-tags |
|
| Latest Version: | v5.4.3 |
| PHP: | >=5.5.9 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Dec 8, 2017 |
| Links: | GitHub · Packagist |
Laravel Meta Tags
With this package you can manage header Meta and OG Tags from Laravel controllers. Kept up to date for the latest Laravel versions.
While there is a few forks of this original package this is the only one kept updated for Laravel 5.4!
Latest package version: 5.4.3
Current supported Laravel version: 5.4.*
Installation
From the command line run
$ composer require Cookizza/laravel-meta-tags
Once Meta Tags is installed you need to register the service provider with the application. Open up config/app.php and find the providers key.
'providers' => array(
Cookizza\LaravelMetaTags\MetaTagsServiceProvider::class,
)
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.
'aliases' => array(
'MetaTag' => Cookizza\LaravelMetaTags\Facades\MetaTag::class,
)
Publish the configurations
Run this on the command line from the root of your project:
$ php artisan vendor:publish --provider="Cookizza\LaravelMetaTags\MetaTagsServiceProvider"
A configuration file will be publish to config/meta-tags.php.
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
app/Http/Controllers/Controller.php
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesCommands;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use MetaTag;
abstract class Controller extends BaseController
{
use DispatchesCommands, ValidatesRequests;
public function __construct()
{
// Defaults
MetaTag::set('description', 'Blog Wes Anderson bicycle rights, occupy Shoreditch gentrify keffiyeh.');
MetaTag::set('image', asset('images/default-share-image.png'));
}
}
app/Http/Controllers/HomeController.php
<?php
namespace App\Http\Controllers;
use MetaTag;
class HomeController extends Controller
{
public function index()
{
// Section description
MetaTag::set('title', 'You are at home');
MetaTag::set('description', 'This is my home. Enjoy!');
return view('index');
}
public function detail()
{
// Section description
MetaTag::set('title', 'This is a detail page');
MetaTag::set('description', 'All about this detail page');
MetaTag::set('image', asset('images/detail-logo.png'));
return view('detail');
}
public function private()
{
// Section description
MetaTag::set('title', 'Private Area');
MetaTag::set('description', 'You shall not pass!');
MetaTag::set('image', asset('images/locked-logo.png'));
return view('private');
}
}
resources/views/layouts/app.blade.php
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ MetaTag::get('title') }}</title>
{!! MetaTag::tag('description') !!}
{!! MetaTag::tag('image') !!}
{!! MetaTag::openGraph() !!}
{!! MetaTag::twitterCard() !!}
{{--Set default share picture after custom section pictures--}}
{!! MetaTag::tag('image', asset('images/default-logo.png')) !!}
</head>
<body>
@yield('content')
</body>
</html>
Alternatives to kekoapp/laravel-meta-tags
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v5.4.3 | >=5.5.9 | ~5.1 | MIT | |
| v5.4.2 | >=5.5.9 | ~5.1 | MIT | |
| v5.4.1 | >=5.5.9 | ~5.1 | MIT | |
| v5.4.0 | >=5.5.9 | ~5.1 | MIT | |
| v5.0 | >=5.5.9 | ~5.1 | MIT | |
| 4.0 | >=5.5.9 | ~5.1 | MIT | |
| v3.0.3 | >=5.5.9 | ~5.1 | MIT | |
| v3.0.2 | >=5.5.9 | 5.1.*| | MIT | |
| v3.0.1 | >=5.5.9 | 5.1.*| | MIT | |
| v3.0.0 | >=5.5.9 | ~5.1 | MIT | |
| v2.0.6 | >=5.4 | MIT | ||
| v2.0.5 | >=5.4 | MIT | ||
| v2.0.4 | >=5.4 | MIT | ||
| v2.0.3 | >=5.4 | MIT | ||
| v2.0.2 | >=5.4 | MIT | ||
| v2.0.1 | >=5.4 | MIT | ||
| v2.0.0 | >=5.4 | MIT | ||
| v1.0.1 | >=5.4 | MIT | ||
| v1.0 | >=5.3 | MIT |