PHPackages                             fomvasss/laravel-seo - 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. fomvasss/laravel-seo

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

fomvasss/laravel-seo
====================

Laravel SEO package

1.13.0(1mo ago)22.3k↓47.5%1MITPHPPHP ^8.0

Since Sep 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/fomvasss/laravel-seo)[ Packagist](https://packagist.org/packages/fomvasss/laravel-seo)[ Docs](https://github.com/fomvasss/laravel-seo)[ Fund](https://send.monobank.ua/jar/5xsqtHvVrY)[ Fund](https://ko-fi.com/fomvasss)[ RSS](/packages/fomvasss-laravel-seo/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (17)Used By (0)

Laravel SEO package
===================

[](#laravel-seo-package)

[![License](https://camo.githubusercontent.com/9c6370cf682ccbd25215b175d713ee6ea5290bea19bbf7077f9d6410e96f9d8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666f6d76617373732f6c61726176656c2d73656f2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fomvasss/laravel-seo)[![Build Status](https://camo.githubusercontent.com/aa69353e16f0069f316668a4099d1ef25ed1877ec40429a4c08ecc184364af50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f666f6d76617373732f6c61726176656c2d73656f2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/fomvasss/laravel-seo)[![Latest Stable Version](https://camo.githubusercontent.com/fb33a893afdc65df3653a27cb1ba025ae58eda2aa96bb13c43e9661c4dadda6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f6d76617373732f6c61726176656c2d73656f2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fomvasss/laravel-seo)[![Total Downloads](https://camo.githubusercontent.com/55ef5a4d27c3f37f7148fd9fb4f24ee469c0eebc2a9c4abdf4a5a94b83dc1d40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f6d76617373732f6c61726176656c2d73656f2e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fomvasss/laravel-seo)[![Quality Score](https://camo.githubusercontent.com/57bc4cf1b24ddf05313809033dab78a2873fc3606c927f8bba4465c3fb7a11e4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666f6d76617373732f6c61726176656c2d73656f2e7376673f7374796c653d666f722d7468652d6261646765)](https://scrutinizer-ci.com/g/fomvasss/laravel-seo)

Support
-------

[](#support)

If this package is useful to you, consider supporting its development:

[![Monobank](https://camo.githubusercontent.com/f4ca1cf4fd0a99ddfed314cb8f65140d8e83e324bd7c1f8476c52fe4ee6b25fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d4d6f6e6f62616e6b2d626c61636b)](https://send.monobank.ua/jar/5xsqtHvVrY)[![Ko-Fi](https://camo.githubusercontent.com/10764ec41c79959f08ccaf3e066c7a76c371961b1b1ff5b5f2a33aceef6e857a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d4b6f2d2d66692d4646354535423f6c6f676f3d6b6f2d6669266c6f676f436f6c6f723d7768697465)](https://ko-fi.com/fomvasss)[![USDT TRC20](https://camo.githubusercontent.com/214b4dc05bedda1c5129726b4450ef7f672ce6637865f8a8be83c03582bfdce8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d5553445425323054524332302d3236413137423f6c6f676f3d746574686572266c6f676f436f6c6f723d7768697465)](https://link.trustwallet.com/send?coin=195&address=THLgp6DxiAtbNHvgnKV56vk1L38UuUagKf&token_id=TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t)

> USDT TRC20 address: `THLgp6DxiAtbNHvgnKV56vk1L38UuUagKf`

With this package you can manage meta-tags and SEO-fields from Laravel app.

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

[](#installation)

You can install the package via composer:

```
composer require fomvasss/laravel-seo
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Fomvasss\Seo\SeoServiceProvider"
php artisan migrate
```

Usage
-----

[](#usage)

The Eloquent model must has the Trait `HasSeo`:

```
namespace App\Models;

use Fomvasss\Seo\Models\HasSeo;

class PostModel extends Model {
	use HasSeo;
	//...

    public function registerSeoDefaultTags(): array
    {
        return [
            'title' => $this->name,
            'description' => $this->description,
            'og_image' => $this->getFirstMediaUrl('images', 'thumb'),
        ];
    }
}
```

Also in model you can define default tags in method `registerSeoDefaultTags`

Allowed next methods (By increasing priority):

```
Seo::setDefault(['title' => 'Blog']);
Seo::setModel($post);
Seo::setPath('page/faq');
Seo::setTags(['keywords' => 'Laravel, SEO, tags']);
```

Rendering tags in Blade (in HTML head):

```
{!!
\Seo::setGroup(app()->getLocale())
    ->setDefault([
        'og_site_name' => config('app.name'),
        'og_url' => URL::full(),
        'og_locale' => app()->getLocale(),
    ])->renderHtml()
!!}
```

Get array tags (for API resource, etc.):

```
\Seo::setGroup(app()->getLocale())
    ->setDefault([
        'og_site_name' => config('app.name'),
        'og_locale' => app()->getLocale(),
    ])->getTags();
```

You can save tags for model in DB:

```
$post->seo('uk')->updateOrCreate([], ['tags' => ['title' => 'Hello Page', 'description' => 'Lorem Ipsum'], 'group' => 'uk']);
```

And get tags (for edit) for dashboard:

```
$tags = $post->getRawSeoTags('uk');
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [fomvasss](https://github.com/fomvasss)
- \[Google docs\] ()

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance93

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Total

16

Last Release

35d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f99b460639e7d6871597882226b1e0d9e3055992eac8b22bfcd4f90fbdac95c?d=identicon)[fomvasss](/maintainers/fomvasss)

---

Top Contributors

[![fomvasss](https://avatars.githubusercontent.com/u/19834478?v=4)](https://github.com/fomvasss "fomvasss (14 commits)")[![ka4ivan](https://avatars.githubusercontent.com/u/75951574?v=4)](https://github.com/ka4ivan "ka4ivan (1 commits)")

---

Tags

laravelseolaravel-seofomvasssmetatag

### Embed Badge

![Health badge](/badges/fomvasss-laravel-seo/health.svg)

```
[![Health](https://phpackages.com/badges/fomvasss-laravel-seo/health.svg)](https://phpackages.com/packages/fomvasss-laravel-seo)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[larament/seokit

A complete SEO package for Laravel, covering everything from meta tags to social sharing and structured data.

452.8k](/packages/larament-seokit)[elegantly/laravel-seo

An Elegant &amp; flexible SEO tag builder for Laravel

124.4k](/packages/elegantly-laravel-seo)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
