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)2991↓75%[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 1mo ago

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 32% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

1622d 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

[devfactory/minify

A package for minifying styles and javascript for laravel 5

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

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

12229.1k8](/packages/joseki-webloader-filters)[trentrichardson/cakephp-shrink

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

1619.3k](/packages/trentrichardson-cakephp-shrink)[nlac/nlsclientscript

Yii ClientScript extension for prevent reloading javascript and merging/minfying resources

208.2k](/packages/nlac-nlsclientscript)[fisharebest/laravel-assets

Asset management for Laravel

208.1k](/packages/fisharebest-laravel-assets)

PHPackages © 2026

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