PHPackages                             orzcc/autometa - 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. orzcc/autometa

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

orzcc/autometa
==============

A Meta Tool for Laravel

38.5k3[2 issues](https://github.com/orzcc/autometa/issues)PHPCI failing

Since Nov 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/orzcc/autometa)[ Packagist](https://packagist.org/packages/orzcc/autometa)[ RSS](/packages/orzcc-autometa/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

AutoMeta - A Meta Tool for Laravel
==================================

[](#autometa---a-meta-tool-for-laravel)

AutoMeta is a package for **Laravel 5** that provides helpers for some common SEO techniques.

Fix some bugs and make code simple of artesaos/seotools.

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

[](#installation)

### 1 - Dependency

[](#1---dependency)

The first step is using composer to install the package and automatically update your `composer.json` file, you can do this by running:

```
composer require orzcc/autometa
```

### 2 - Provider

[](#2---provider)

You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your `config/app.php` file adding the following code at the end of your `'providers'` section:

> `config/app.php`

```
// file START ommited
    'providers' => [
        // other providers ommited
        'Orzcc\AutoMeta\Providers\AutoMetaServiceProvider',
    ],
// file END ommited
```

### 3 - Facade

[](#3---facade)

In order to use the `Meta` facade, you need to register it on the `config/app.php` file, you can do that the following way:

```
// file START ommited
    'aliases' => [
        // other Facades ommited
        'Meta'   => 'Orzcc\AutoMeta\Facades\AutoMeta',
    ],
// file END ommited
```

4 - Usage
---------

[](#4---usage)

### Meta tags Generator

[](#meta-tags-generator)

With **Meta** you can create meta tags to the `head`

#### In your controller

[](#in-your-controller)

```
use Meta;

class CommomController extends Controller
{

    /**
     * @return \Illuminate\View\View
     */
    public function index()
    {
        Meta::setTitle('Home');
        Meta::setDescription('This is my page description');

        $posts = Post::all();

        return view('myindex', compact('posts'));
    }

    /**
     * @return \Illuminate\View\View
     */
    public function show($id)
    {
        $post = Post::find($id);

        Meta::setTitle($post->title);
        Meta::setDescription($post->resume);
        Meta::addMeta('article:published_time', $post->published_date->toW3CString(), 'property');
        Meta::addMeta('article:section', $post->category, 'property');
        Meta::addKeyword(['key1', 'key2', 'key3']);

        return view('myshow', compact('post'));
    }
}
```

### In Your View

[](#in-your-view)

```

	{!! Meta::generate() !!}

```

```

	Title - SubTitle

```

#### Configuration

[](#configuration)

In `autometa.php` configuration file you can determine the properties of the default values and some behaviors.

- **defaults** - What values are displayed if not specified any value for the page display. If the value is `false`, nothing is displayed.
- **webmaster** - Are the settings of tags values for major webmaster tools. If you are `null` nothing is displayed.

#### API (Meta)

[](#api-meta)

```
Meta::setTitleSeperator($seperator);
Meta::generate::setTitle($title);
Meta::setDescription($description);
Meta::setKeywords($keywords);
Meta::addKeyword($keyword);
Meta::addMeta($meta, $value = null, $name = 'name');

// You can concatenate methods
Meta::setTitle($title)
            ->setDescription($description)
            ->setKeywords($keywords)
            ->addKeyword($keyword)
            ->addMeta($meta, $value);

// Retrieving data
Meta::getTitle();
Meta::getTitleSession();
Meta::getTitleSeperator();
Meta::getKeywords();
Meta::getDescription();
Meta::reset();

Meta::generate();
```

Sponsor
-------

[](#sponsor)

[Tech Life Land](https://www.techlifeland.com)

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fcbc9d87e31e6370d6b5f4913850894ef922c16a5276a55c8d43453e146b6e1?d=identicon)[orzcc](/maintainers/orzcc)

---

Top Contributors

[![orzcc](https://avatars.githubusercontent.com/u/402270?v=4)](https://github.com/orzcc "orzcc (8 commits)")

### Embed Badge

![Health badge](/badges/orzcc-autometa/health.svg)

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

PHPackages © 2026

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