2017 © Pedro Peláez
 

package scriptholder

Don't repeat yourself to place stats/ads script

image

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

The README.md

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>

The Versions

07/12 2016

dev-master

9999999-dev

Don't repeat yourself to place stats/ads script

  Sources   Download

Halal

The Development Requires

by Mochammad Masbuchin