PHPackages                             insight-media/seotamic - 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. insight-media/seotamic

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

insight-media/seotamic
======================

Simple SEO addon for Statamic v3

v2.0.6(4y ago)0211MITPHPPHP ^7.3.4||^8.0

Since Jun 1Pushed 4y agoCompare

[ Source](https://github.com/insight-media/seotamic)[ Packagist](https://packagist.org/packages/insight-media/seotamic)[ RSS](/packages/insight-media-seotamic/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (10)Used By (0)

Seotamic - Statamic SEO Addon
=============================

[](#seotamic---statamic-seo-addon)

Statmic v3 only. Automatically adds a SEO tab to all your collection entries where you can fine tune SEO for every entry.

```
{{ seotamic }}
```

Generates the whole array of SEO settings:

```
My Page Title

...
```

Version 2 changes
-----------------

[](#version-2-changes)

Version 2 has breaking changes. If you update from version 1, your global settings will not be transfered, you need to manually copy the old files to the content directory.

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

[](#installation)

Include the package with composer:

```
composer require cnj/seotamic
```

The package requires Laravel 7+ and PHP 7.3+. It will auto register.

The SEO section tab will appear on all collection entries automatically.

Configuration (optional)
------------------------

[](#configuration-optional)

You can override the default options by publishing the configuration:

```
php artisan vendor:publish --provider="Cnj\Seotamic\ServiceProvider" --tag=config

```

This will copy the default config file to `config/seotamic.php'.

If you need to change the default assets container, make sure to apply the change in the Blueprints as well.

Usage
-----

[](#usage)

Usage is fairly simple and straight forward. You can visit the global Settings by following the Seotamic link on the navigation in the CP. Make sure to follow the instructions on each field.

After this you can fine tune the output of each collection entry by editing the SEO settings under the entry's SEO tab.

### Antlers

[](#antlers)

There are several antler tags available, the easiest is to just include the do everything base tag in the head of your layout:

```
{{ seotamic }}

```

If you need more control you can manually get each part of the output by using:

```
{{ seotamic:title }}
{{ seotamic:description }}
{{ seotamic:canonical }}

```

This will return strings, so you need to wrap them in the appropriate tags, ie:

```
{{ seotamic:title }}
```

Social ones will still return everything with tags

```
{{ seotamic:og }}
{{ seotamic:twitter }}

```

Dynamic OG Image
----------------

[](#dynamic-og-image)

In projects where you want the OG Image to be dynamic, for now you can use this ViewModel and inject it to your collection in order to dynamically assign the OG Image.

```
