PHPackages                             simplette/loader - 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. simplette/loader

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

simplette/loader
================

Loader for styles and scripts.

v0.1.0(6y ago)026MITPHPPHP &gt;= 7.1

Since Sep 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/simplette/loader)[ Packagist](https://packagist.org/packages/simplette/loader)[ RSS](/packages/simplette-loader/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (9)Versions (2)Used By (0)

Simplette / Loader
==================

[](#simplette--loader)

An implementation of simple assets loader - for building your styles and javascripts on the fly. Thank to this library, you can simplify your workflow with [Nette Framework](https://github.com/nette/nette)'s frontend.

Requirements
------------

[](#requirements)

This library requires PHP 7.1 or higher. [Simplette Loader](https://github.com/simplette/loader) library is designed for [Nette Framework](https://github.com/nette/nette) version 3.0 and higher.

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

[](#installation)

The best way to install this library is using [Composer](http://getcomposer.org/):

```
$ composer require simplette/loader
```

Documentation
-------------

[](#documentation)

Firstly, register extensions. For more information about configuration see the class definition. This library (as all libraries from Simplette) is meant to be as simple as possible.

```
extensions:
    style: Simplette\Loader\Style\StyleLoaderExtension
    script: Simplette\Loader\Script\ScriptLoaderExtension
```

Now you can define your own list of styles, scripts, configure each part of loader, etc.

See example configuration:

```
style:
    debugger: %debugMode% # or just set true/false
    genDir: assets/gen
    files:
        admin-sb: # you can combine scss and css files
            - %appDir%/Modules/AdminModule/styles/admin-sb.scss
            - %appDir%/Modules/AdminModule/styles/daterangepicker.css
        admin-editor:
            - %appDir%/Modules/AdminModule/styles/codemirror.css
            - %appDir%/Modules/AdminModule/scripts/vendor/codemirror/addon/display/fullscreen.css
            - %appDir%/Modules/AdminModule/styles/codemirror.scss
        # ...

script:
    debugger: %debugMode%
    compiler:
        minify: FALSE # turn off minification / there can be possible to set other compiler parameters
    genDir: assets/gen
    files:
        admin-sb:
            - %appDir%/Modules/AdminModule/scripts/vendor/bootstrap.bundle.min.js # files *.min.* would not be minified again
            # ...
            - %appDir%/Modules/AdminModule/scripts/sb-admin-2.js
            # ...
        admin-search:
            # ...
            - %appDir%/Modules/AdminModule/scripts/search.js
        admin-nette:
            - %appDir%/../vendor/nette/forms/src/assets/netteForms.min.js
            - %appDir%/Modules/AdminModule/scripts/vendor/nette.ajax.js
            # ...
            - %appDir%/Modules/AdminModule/scripts/init-nette.js
        admin-editor:
            - %appDir%/Modules/AdminModule/scripts/vendor/codemirror/codemirror.js
            # ...
            - %appDir%/Modules/AdminModule/scripts/init-editor.js
        # ...
```

Then you can use it in your latte templates like this:

```

```

Contributing
------------

[](#contributing)

This is an open source, community-driven project. If you would like to contribute, please follow the code format as used in current sources and submit a pull request.

---

Advanced documentation will be added in the future. But if you look on my source codes, you will understand what you can do with this small (but powerful) library.

See also [other libraries](https://github.com/simplette) and some [older work](https://github.com/sw2eu) if you are looking for inspiration.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

2436d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/047f5650682a5b4383f1c1511fe05917c031eec13eb9aa0dad247f12b211cf53?d=identicon)[Lupo112](/maintainers/Lupo112)

---

Top Contributors

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

---

Tags

netteassetsstylesscriptswebloader

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/simplette-loader/health.svg)

```
[![Health](https://phpackages.com/badges/simplette-loader/health.svg)](https://phpackages.com/packages/simplette-loader)
```

###  Alternatives

[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[janmarek/webloader

Tool for loading or deploying CSS and JS files into web pages

115514.4k14](/packages/janmarek-webloader)[bileto/cronner

Simple tool which helps with maintenance of cron tasks.

752.1k](/packages/bileto-cronner)

PHPackages © 2026

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