woren951/meta-tags

HTML meta tags generation by PHP

1.0.1 2023-09-28 13:50 UTC

This package is auto-updated.

Last update: 2024-04-28 15:22:42 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() !!}