PHPackages                             iag/metadata - 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. iag/metadata

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

iag/metadata
============

Seo metadata for Laravel websites

v0.2.1(6y ago)22331PHPPHP ~7.2

Since Jan 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/IAndreaGiuseppe/metadata)[ Packagist](https://packagist.org/packages/iag/metadata)[ Docs](https://github.com/IAndreaGiuseppe/metadata)[ RSS](/packages/iag-metadata/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Metadata
========

[](#metadata)

> Use this package if you don't need complex implementation over SEO metadata.

This package provides a way to include metadata tags and other SEO related values inside a view.

This is the most flexible way of inject metadata inside webpages without the need of a database.

Setup
-----

[](#setup)

1. Require this package inside your `composer.json` file.

```
{
    "iag/metadata": "^0.1.0"
}

```

1. Opt-in publishing metadata config file.

```
php artisan vendor:publish
```

You can now modify the new `metadata.php` configuration file inside `config` folder with your preferred default values.

Usage
-----

[](#usage)

This package is a metadata management suite to include metadata tags and related SEO values inside a view.

1. Before start using this package update the configuration file `config/metadata.php` with your default SEO informations.
2. Include a new stack inside your base layout view. This stack will collect all your SEO metadata.

```
// main layout

DOCTYPE html>

        @stack('metadata')

```

Now you're ready to include your metadata.

2. Choose a public view of your website content (ex. views/articles/page.blade.php) and include the `metadata::metadata` view entry point when you need it.

```
@extends('layouts.page')

@section('content')

    {{ $article->title }}

    {{ $article->body }}

@endsection

// push metadata view on the stack
@push('metadata')
    @include('metadata::metadata', [
        'title' => $article->title, //  'John Doe'      //  [
        'is_active' => true,

...

    'twitter' => [
        'is_active' => true,

```

Setting `true` to these directives enable a default facebook or twitter injection of metadata.

You can opt-in deactivate these section at runtime for a singular content in your website:

```
// push metadata view on the stack
@push('metadata')
    @include('metadata::metadata', [
        'title' => $article->title,
        'author' => $article->author->name,
        'twitter' => false, // don't use twitter metadata for a specific content
    ])
@endpush
```

Flags
-----

[](#flags)

- `facebook.is_active` as `facebook`
    Activate the facebook metadata section
- `twitter.is_active` as `twitter`
    Activate the twitter metadata section

Properties
----------

[](#properties)

Metadata package manage the following list of properties:

- `robots`
    Defines the behaviour that cooperative crawlers, or "robots", should use with the page.
    Possible values: index, noindex, follow, nofollow, none, noodp, noarchive, nosnippet, noimageindex, nocache
- `referrer`
    Controls the Referer HTTP header attached to requests sent from the document.
    Possible values: no-referrer, origin, no-referrer-when-downgrade, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-URL
- `canonical`
    Define the canonical url of your content.
- `description`
    Contains a short and accurate summary of the content of the page.
- `og:title` as `title`
    This metadata is used inside head section to assign a title for search engine and does not modify the main page title.
- `og:url`
- `og:description` as `description`
- `og:type` as `type`
    Describe the type of the content.
    Possible values: website, article, music, video, book, profile
- `og:locale`
- `fb:app_id`
    Facebook App Id.
- `twitter:card` as `card_type`
    Twitter card type.
    Possible values: summary, summary\_large\_image, app, player
- `twitter:site` as `site`
    Twitter referred @site.
- `twitter:creator` as `author`
    Twitter referred @username.
- `og:image` as `image_url`
    An image URL which should represent your object within the graph.
- `og:image:type` as `image_type`
    A MIME type for the image.
- `og:image:width` as `image_width`
    The number of pixels wide.
- `og:image:height` as `image_height`
    The number of pixels high.
- `og:image:alt` as `image_alt`
    A description of what is in the image (not a caption). If the page specifies an og:image it should specify this property.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~46 days

Total

3

Last Release

2224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc17b053a9ca3dc4591a9113e8ff48dfe8c835a7a203e784fb958cba2d2b6915?d=identicon)[IAndreaGiuseppe](/maintainers/IAndreaGiuseppe)

---

Top Contributors

[![IAndreaGiuseppe](https://avatars.githubusercontent.com/u/57986499?v=4)](https://github.com/IAndreaGiuseppe "IAndreaGiuseppe (5 commits)")

---

Tags

laravelmetadataseo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iag-metadata/health.svg)

```
[![Health](https://phpackages.com/badges/iag-metadata/health.svg)](https://phpackages.com/packages/iag-metadata)
```

###  Alternatives

[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[honeystone/laravel-seo

SEO metadata and JSON-LD package for Laravel.

34744.1k](/packages/honeystone-laravel-seo)[lionix/seo-manager

SEO Manager for Laravel Framework

2165.4k](/packages/lionix-seo-manager)[fomvasss/laravel-meta-tags

A package to manage SEO (meta-tags, xml-fields, etc.)

3028.9k](/packages/fomvasss-laravel-meta-tags)

PHPackages © 2026

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