Download the PHP package ripaclub/zf2-hanger-snippet without Composer
On this page you can find all versions of the php package ripaclub/zf2-hanger-snippet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ripaclub/zf2-hanger-snippet
More information about ripaclub/zf2-hanger-snippet
Files in ripaclub/zf2-hanger-snippet
Package zf2-hanger-snippet
Short Description A module to attach HTML/JS snippets into a ZF2 application
License BSD-2-Clause
Homepage https://github.com/ripaclub/zf2-hanger-snippet
Informations about the package zf2-hanger-snippet
HangerSnippet
This ZF2 Module aims to provide a fast way to configure and append code snippeds for JS libraries.
Rationale
Often happens to have to set up a Javascript library and many times it would be nice to have a place where you can configure them and perhaps with the ability to override the configuration rather than throw them in the view.
Installation
Via Composer
Add ripaclub/zf2-hanger-snippet
to your composer.json
Setup
In your layout before the body closing tag
Optionally, if you need to add more placements:
Configuration
Do not forget to add HangerSnippet module to you application.config.php
file.
Built-in snippets
Google Analytics
Configuration:
Facebook JavaScript SDK
Configuration:
Google no CAPTCHA reCAPTCHA
Configuration:
The placement of Google ReCaptcha snippet, unlike the others, needs to be specified (it can not be simply appended to the page).
To place this snippet where you need it ...
NOTE
The string google-nocaptcha-recaptcha
is the default name of the placement for this snippet (see module.config.php
).
All versions of zf2-hanger-snippet with dependencies
zendframework/zend-view Version 2.*
zendframework/zend-servicemanager Version 2.*
zendframework/zend-filter Version 2.*
zendframework/zend-modulemanager Version 2.*
zendframework/zend-escaper Version 2.*