Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.
/ meta-tags Public archive

a simple way to generate HTML Meta Tags for your laravel app

License

Notifications You must be signed in to change notification settings

still-code/meta-tags

Repository files navigation

Laravel Meta Tags

simple way to generate laravel HTML Meta Tags.

Installation

You can install the package via composer:

composer require atm-code/meta-tags

Usage

set Meta tags

\MetaTag
    ::title('site title')
    ->desc('site desc')
    ->type()->url(url('/'))
    ->image(asset('images/logo.png'))
    ->color('#F5F5F4')

this will generate the following HTML:

<title>site title</title>
<meta name="title" content="site title">
<meta property="og:title" content="site title">
<meta property="twitter:title" content="site title">
<meta name="description" content="site desc"><meta property="og:description" content="site desc">
<meta property="twitter:description" content="site desc">
<meta name="og:type" content="website">
<meta name="og:url" content="https://site.test">
<meta name="og:image" content="https://site.test/images/logo.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://site.test/images/logo.png">
<meta name="theme-color" content="#F5F5F4">

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

a simple way to generate HTML Meta Tags for your laravel app

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages