2017 © Pedro Peláez
 

library local-script

Small Zend Framework 2 module to embed javascripts for specific installations

image

soflomo/local-script

Small Zend Framework 2 module to embed javascripts for specific installations

  • Thursday, November 21, 2013
  • by juriansluiman
  • Repository
  • 3 Watchers
  • 0 Stars
  • 105 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Soflomo\LocalScript

Soflomo\LocalScript is a small utility module which enables users to inject javascripts in their own developement build. Examples are the Grunt browser sync plugins. You would not commit those changes into the source repository and thus you need to exclude it every time you commit the layout files. Not anymore!, (*1)

Installation

Require the package soflomo/local-script via composer. Then enable the module in your application configuration with the name "Soflomo\LocalScript"., (*2)

Usage

Copy the file soflomo_localscript.local.php from vendor/soflomo/local-script/config to your own config/autoload directory. Load all files you need to load in the files array., (*3)

Example

An example configuration can look like:, (*4)

return array(
    'soflomo_local_script' => array(
        /**
         * A listing of all the files to be injected
         *
         * Use the full source value to be injected, the array
         * can contain zero, one or multiple items.
         */
        'files' => array(
            'http://192.168.1.152:3000/socket.io/socket.io.js',
            'http://192.168.1.152:3001/browser-sync-client.min.js'
        ),
    ),
);

The Versions

21/11 2013

dev-master

9999999-dev https://github.com/Soflomo/LocalScript

Small Zend Framework 2 module to embed javascripts for specific installations

  Sources   Download

BSD-3-Clause

The Requires

 

zf2

21/11 2013

v0.1.0

0.1.0.0 https://github.com/Soflomo/LocalScript

Small Zend Framework 2 module to embed javascripts for specific installations

  Sources   Download

BSD-3-Clause

The Requires

 

zf2