woren951/meta-tags

HTML meta tags generation by PHP

Installs: 567

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 1

pkg:composer/woren951/meta-tags

1.0.1 2023-09-28 13:50 UTC

This package is auto-updated.

Last update: 2025-09-28 18:20:20 UTC


README

Installation

Add woren951/meta-tags to composer.json with a text editor:

"woren951/meta-tags": "dev-master"

Or via a console:

composer require woren951/meta-tags

This library requires PHP >=7.3.

Introduction

Example:

app('meta-tags')->title('Page title')
  ->description('Page description')
  ->canonical('https://github.com/woren951/meta-tags')
  ->robots('index,nofollow')
  ->image('https://picsum.photos/1200/630', 1200, 630, 'image/jpeg');

Render meta tags in a template as follows:

{!! app('meta-tags')->render() !!}