SeoKit is a Laravel SEO toolkit for managing meta tags, Open Graph data, Twitter cards, and JSON-LD from one consistent API.
It is designed for applications that need a practical SEO layer without stitching together multiple packages or scattering metadata logic across controllers, models, and views.
Install the package with Composer:
composer require larament/seokit
Publish the package assets with the installer command:
php artisan seokit:install
If you prefer to publish assets manually:
php artisan vendor:publish --tag="seokit-config"
php artisan vendor:publish --tag="seokit-migrations"
php artisan migrate
Set page metadata in your controller:
use Larament\SeoKit\Facades\SeoKit;
public function show(Post $post)
{
SeoKit::title($post->title)
->description($post->excerpt)
->image($post->featured_image)
->canonical(route('posts.show', $post));
return view('posts.show', compact('post'));
}
Render the tags in your layout:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@seoKit
<!-- ... -->
</head>
<body>
<!-- ... -->
</body>
</html>
For model-driven SEO, SeoKit also provides HasSeo and HasSeoData traits.
Detailed documentation lives in the GitHub wiki:
The README is intentionally kept short. The wiki should be the source of truth for package guides, examples, and feature-specific documentation.
Run the test suite:
composer test
Run static analysis:
composer analyse
Format the codebase:
composer format
Please see CHANGELOG for more information on what has changed recently.
Contributions are welcome. Please open an issue or submit a pull request if you want to improve the package.
Please review the security policy for reporting vulnerabilities.
SeoKit is open-sourced software licensed under the MIT license.
How can I help you explore Laravel packages today?