atm-code / meta-tags
html meta tags generator for laravel
Fund package maintenance!
atmonshi
Requires
- php: ^8.0
- illuminate/support: ^9.0
Requires (Dev)
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.5.10
This package is not auto-updated.
Last update: 2023-04-15 04:01:00 UTC
README
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.