package scriptholder
Don't repeat yourself to place stats/ads script
buchin/scriptholder
Don't repeat yourself to place stats/ads script
- Wednesday, December 7, 2016
- by buchin
- Repository
- 1 Watchers
- 0 Stars
- 35 Installations
- HTML
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Scriptholder
Place script anywhere accross apps, (*1)
Why?
I don't want to manually place adsense code, stat script manually in all of my apps. This package help me automate that., (*2)
Installation
composer require buchin/scriptholder
Usage
Example usage for laravel blade template, injecting statcounter script
Script placed in vendor/buchin/scriptholder/scripts/script_name.html, (*3)
@php
use Buchin\Scriptholder\Scriptholder;
@endphp
<html>
<head>
</head>
<body>
{{ Scriptholder::place('statcounter') }}
</body>
</html>
dev-master
9999999-dev
Don't repeat yourself to place stats/ads script
Sources
Download
Halal
The Development Requires
by
Mochammad Masbuchin