PHPackages                             soflomo/local-script - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. soflomo/local-script

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

soflomo/local-script
====================

Small Zend Framework 2 module to embed javascripts for specific installations

v0.1.0(12y ago)01311BSD-3-ClausePHPPHP &gt;=5.3.3.

Since Nov 21Pushed 12y ago3 watchersCompare

[ Source](https://github.com/Soflomo/LocalScript)[ Packagist](https://packagist.org/packages/soflomo/local-script)[ Docs](https://github.com/Soflomo/LocalScript)[ RSS](/packages/soflomo-local-script/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

Soflomo\\LocalScript
====================

[](#soflomolocalscript)

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!

Installation
------------

[](#installation)

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

Usage
-----

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

Example
-------

[](#example)

An example configuration can look like:

```
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'
        ),
    ),
);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4558d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c8ca0c8435ae4c01c201bb52f63a72a8f9ef203f61535d7daf588f6b3a7df1c?d=identicon)[juriansluiman](/maintainers/juriansluiman)

---

Tags

zf2

### Embed Badge

![Health badge](/badges/soflomo-local-script/health.svg)

```
[![Health](https://phpackages.com/badges/soflomo-local-script/health.svg)](https://phpackages.com/packages/soflomo-local-script)
```

###  Alternatives

[slm/google-analytics

Google Analytics tracking integration for Zend Framework 2

4180.3k](/packages/slm-google-analytics)[heartsentwined/zf2-cron

ZF2 cron module

596.8k](/packages/heartsentwined-zf2-cron)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
