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.10.0(10mo ago)22.0k↓33.3%1MITPHPPHP ^8.0

Since Sep 27Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/fomvasss/laravel-seo)[ Packagist](https://packagist.org/packages/fomvasss/laravel-seo)[ Docs](https://github.com/fomvasss/laravel-seo)[ RSS](/packages/fomvasss-laravel-seo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)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)

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)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance53

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~83 days

Recently: every ~115 days

Total

13

Last Release

323d 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 (9 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

[ralphjsmit/laravel-seo

A package to handle the SEO in any Laravel application, big or small.

841433.3k21](/packages/ralphjsmit-laravel-seo)[honeystone/laravel-seo

SEO metadata and JSON-LD package for Laravel.

34744.1k](/packages/honeystone-laravel-seo)[larament/seokit

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

411.9k](/packages/larament-seokit)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[elegantly/laravel-seo

An Elegant &amp; flexible SEO tag builder for Laravel

122.9k](/packages/elegantly-laravel-seo)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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