northeastern-web / support
Package of support classes for Northeastern University websites
Installs: 5 012
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.1|>=7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.17
This package is auto-updated.
Last update: 2024-05-30 00:42:02 UTC
README
Package of support classes for Northeastern University websites
Installation
You can install the package via composer:
composer require northeastern-web/support
Usage
Meta tags
The package includes the Meta class for any meta related tags.
Add the following code to inside your <head>
tag.
<?php echo Northeastern\Support\Meta::head() ?>
If your project is using Laravel Blade's templating engine, you can add the following code.
{!! Northeastern\Support\Meta::head() !!}
Analytics scripts
The package includes the Analytics class for the Northeastern analytics scripts.
Add the following code to inside your <head>
tag.
<?php echo Northeastern\Support\Analytics::googleTagManagerScript() ?>
And add the following code just after your opening <body>
tag.
<?php echo Northeastern\Support\Analytics::googleTagManagerNoScript() ?>
If your project is using Laravel Blade's templating engine, you can add the following code inside your <head>
tag.
{!! Northeastern\Support\Analytics::googleTagManagerScript() !!}
And add the following code just after your opening <body>
tag.
{!! Northeastern\Support\Analytics::googleTagManagerNoScript() !!}