PHPackages                             ripaclub/zf2-hanger-snippet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. ripaclub/zf2-hanger-snippet

ActiveLibrary[Templating &amp; Views](/categories/templating)

ripaclub/zf2-hanger-snippet
===========================

A module to attach HTML/JS snippets into a ZF2 application

v1.0.6(10y ago)61921BSD-2-ClausePHPPHP &gt;=5.4

Since Apr 5Pushed 10y ago4 watchersCompare

[ Source](https://github.com/ripaclub/zf2-hanger-snippet)[ Packagist](https://packagist.org/packages/ripaclub/zf2-hanger-snippet)[ Docs](https://github.com/ripaclub/zf2-hanger-snippet)[ RSS](/packages/ripaclub-zf2-hanger-snippet/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (6)Versions (8)Used By (0)

HangerSnippet
=============

[](#hangersnippet)

[![Travis](https://camo.githubusercontent.com/bb90a0a0f44d3167f1d44f849c848b5d866c975faccd4300dcb06c233331b550/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72697061636c75622f7a66322d68616e6765722d736e69707065742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ripaclub/zf2-hanger-snippet)[![Packagist](https://camo.githubusercontent.com/3d2a20d6d128b00bc5b94f5c0731cc325206e4b8d2c0e79cfbbe8dc503338b24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72697061636c75622f7a66322d68616e6765722d736e69707065742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ripaclub/zf2-hanger-snippet)[![License](https://camo.githubusercontent.com/b9b6e3d0c49ebef760f13b9ee76512488e697106dedc99989366a49bf9dbe622/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72697061636c75622f7a66322d68616e6765722d736e69707065742e7376673f7374796c653d666c61742d737175617265)](https://github.com/ripaclub/zf2-hanger-snippet/blob/master/LICENSE.txt)[![Scrutinizer](https://camo.githubusercontent.com/41ad644f0c3b4af8c56950e262f592c8a1b8ee650b2082d75019b395bca6444a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72697061636c75622f7a66322d68616e6765722d736e69707065742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ripaclub/zf2-hanger-snippet)[![Scrutinizer Coverage](https://camo.githubusercontent.com/99e59027e8e41eebcb4637f50276cbd0ee544b42f9cc36a85c4c7b88cf7d9100/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72697061636c75622f7a66322d68616e6765722d736e69707065742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ripaclub/zf2-hanger-snippet)

This ZF2 Module aims to provide a fast way to configure and append code snippeds for JS libraries.

Rationale
---------

[](#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
------------

[](#installation)

### Via Composer

[](#via-composer)

Add `ripaclub/zf2-hanger-snippet` to your composer.json

```
{
   "require": {
       "ripaclub/zf2-hanger-snippet": "~1.0.6"
   }
}
```

Setup
-----

[](#setup)

**In your layout before the body closing tag**

```

```

Optionally, if you need to add more placements:

```
