atm-code/meta-tags

This package is abandoned and no longer maintained. The author suggests using the https://github.com/archtechx/laravel-seo package instead.

html meta tags generator for laravel

1.0.0 2022-02-08 21:13 UTC

This package is not auto-updated.

Last update: 2023-04-15 04:01:00 UTC


README

68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4d6574612a546167732a2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d61746d2d636f64652532466d6574612d74616773267061747465726e3d7069616e6f4d616e267374796c653d7374796c655f31266465736372697074696f6e3d73696d706c652b7761792b746f2b67656e65726174652b6c61726176656c2b48544d4c2b4d6574612b54616773266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313735707826696d616765733d746167267769647468733d33353026686569676874733d333530

68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61746d2d636f64652f6d6574612d74616773 68747470733a2f2f6170702e7472617669732d63692e636f6d2f61746d2d636f64652f6d6574612d746167732e7376673f6272616e63683d6d61696e 68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3431333034333532392f736869656c643f6272616e63683d6d61696e 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61746d2d636f64652f6d6574612d74616773 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f61746d2d636f64652f6d6574612d74616773

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="http://site.test">
<meta name="og:image" content="http://site.test/images/logo.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://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.