PHPackages                             modseven/assets - 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. modseven/assets

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

modseven/assets
===============

Asset Module for Modseven

0201PHP

Since May 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/modseven/assets)[ Packagist](https://packagist.org/packages/modseven/assets)[ RSS](/packages/modseven-assets/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

**Modseven Assets Module**

\##Installation `composer require modseven/assets` ..that's it.

\##Configuration Copy the file(s) from vendor/modseven/assets/conf/ to your application/conf folder. Modify them as needed. The following configuration options are available for each type (js/css)

OptionDescriptionDefault Valuetype\_minifyIF true, then the files will be minified using matthiasmullie's minifierFALSEtype\_pathThis is the directory where your source files are located (relative to PUBPATH)type\_minifiedLocation to the minified file, minfied code will be stored there. (relative to PUBPATH)public/app.lifetimeLifetime for minified files, set high value on production servers here86400 (24 Hours)\##Usage Here is a example of adding, files with and without dependencies

```
// Basic example
$assets = \Modseven\Assets\Assets::instance();
$assets->addCSS('mycssfilewithoutextension', ['dependency1', 'dependency2']);

// Another example, this will render bootstrap first then navbar
$assets = \Modseven\Assets\Assets::instance();
$assets->addCSS('navbar', ['bootstrap']);
$assets->addCSS('bootstrap');

// ...even this is again somewher in the code it will just render "bootstrap" once
$assets->addCSS('bootstrap');

```

After adding files simply include them in your view. Example:

```

        Assets Demo

```

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

[](#contributing)

Any help is more than welcome! Just fork this repo and do a PR.

Special Thanks
--------------

[](#special-thanks)

Special Thanks to all Contributors and the Community!

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6703727b3960b7f58325c28bc4b209acd71c4499d383759fc8397db50691a17?d=identicon)[toitzi](/maintainers/toitzi)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/modseven-assets/health.svg)

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

###  Alternatives

[byjg/singleton-pattern

A lightweight PHP implementation of the Design Pattern Singleton using trait.

1055.4k2](/packages/byjg-singleton-pattern)[kriss/webman-eloquent-ide-helper

webman-eloquent-ide-helper plugin

142.7k](/packages/kriss-webman-eloquent-ide-helper)

PHPackages © 2026

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