PHPackages                             bdwilliams/spassets - 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. bdwilliams/spassets

ActiveLibrary

bdwilliams/spassets
===================

SlimPHP Assets Manager

534PHP

Since Mar 17Pushed 13y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Spassets - SlimPHP Asset Manager
================================

[](#spassets---slimphp-asset-manager)

TODO:

- Twig Extension
- Support for Less

Example:
--------

[](#example)

index.php:

```
require 'vendor/autoload.php';

$assets = New \Spassets\Spassets();
$assets->minify = true;

$app->get('/', function () use ($app, $assets) {
	$css = $assets->printAssets('css', array('/css/bootstrap/bootstrap.min.css', '/css/bootstrap/bootstrap-responsive.min.css', '/css/custom.css'));
	$js = $assets->printAssets('js', array('/js/bootstrap/bootstrap.js', '/js/custom.js'));
    $app->render('index.html.twig', array('session' => $_SESSION, 'css' => $css, 'js' => $js));
});

```

index.html.twig:

```

    Your Page
    {{ css|raw }}

    Hello, world!
    {{ js|raw }}

```

Recommended:
------------

[](#recommended)

Gzip your assets by putting this in your root .htaccess file:

```

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript

```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

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.

### Community

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bdwilliams-spassets/health.svg)

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

PHPackages © 2026

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