PHPackages                             nanuc/js-snippets - 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. nanuc/js-snippets

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

nanuc/js-snippets
=================

0.1.2(4y ago)21.0k↓94.1%[1 issues](https://github.com/nanuc/js-snippets/issues)PHPPHP ^7.3|^8.0

Since May 4Pushed 4y agoCompare

[ Source](https://github.com/nanuc/js-snippets)[ Packagist](https://packagist.org/packages/nanuc/js-snippets)[ RSS](/packages/nanuc-js-snippets/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

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

[](#installation)

`composer require nanuc/js-snippets`

Publish config (optionally): `php artisan vendor:publish --provider="Nanuc\JSSnippets\JSSnippetsServiceProvider" --tag=config`

Usage
-----

[](#usage)

```

        console.log('Hello');
        console.log('I will');
        console.log('get minified');
        console.log('and downloaded as a plain Javascript file');

```

Scripts in the `js-snippet` component will get minified (thanks to ) and loaded as separate Javascript source.

You need to define the stack that the script tag will be pushed to (default: `scripts`).

By default this will only be run in the `production` environment (you can change this in the config).

Behind the scenes
-----------------

[](#behind-the-scenes)

The component will minify its content and put it in a file in the view cache. It will also generate a key based on the content.

Then it will create a script tag with a link that downloads this file as a plain Javascript source.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~109 days

Total

3

Last Release

1669d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dd4066526f273592da88a5b863d5302bb171dd626ffd3e646a0f282a0dc4db2?d=identicon)[oleloSebastian](/maintainers/oleloSebastian)

---

Top Contributors

[![SebastianSchoeps](https://avatars.githubusercontent.com/u/44115562?v=4)](https://github.com/SebastianSchoeps "SebastianSchoeps (1 commits)")

### Embed Badge

![Health badge](/badges/nanuc-js-snippets/health.svg)

```
[![Health](https://phpackages.com/badges/nanuc-js-snippets/health.svg)](https://phpackages.com/packages/nanuc-js-snippets)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[voku/html-min

HTML Compressor and Minifier

1885.0M64](/packages/voku-html-min)[devfactory/minify

A package for minifying styles and javascript for laravel 5

82379.8k14](/packages/devfactory-minify)[joseki/webloader-filters

This is an extension of janmarek/webloader. This extension contains filters to minify js and css.

12240.5k8](/packages/joseki-webloader-filters)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.4k](/packages/trentrichardson-cakephp-shrink)

PHPackages © 2026

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