PHPackages                             ronanchilvers/bundler - 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. ronanchilvers/bundler

ActiveLibrary

ronanchilvers/bundler
=====================

Simple file bundler

01[1 PRs](https://github.com/ronanchilvers/bundler/pulls)PHP

Since Sep 23Pushed 7mo agoCompare

[ Source](https://github.com/ronanchilvers/bundler)[ Packagist](https://packagist.org/packages/ronanchilvers/bundler)[ RSS](/packages/ronanchilvers-bundler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Bundler
=======

[](#bundler)

A simple bundler to concatenate and version static files, optionally writing correct HTML tags.

Goals
-----

[](#goals)

- Simple to use
- No dependencies
- Support CSS and JS
- Support HTML tag generation
- Support versioning (cache busting)
- Support multiple bundles
- Facilitate extending to add extra features such as minification
- Implement a Config object to centralise configuration variables
- Support browser inportmaps

Usage
-----

[](#usage)

```

    Testing 123
decorate(SRI::class, [
        'source' => __DIR__ . '/source/css',
        'algorithms' => ['sha384'],
    ])
    ->render([
        'resources/css/one.css',
        'resources/css/two.css',
    ]);
?>

        Hallo!
        lorem ipsum quod erat
decorate(SRI::class, [
        'source' => __DIR__ . '/source/js',
        'algorithms' => ['sha384'],
    ])
    ->render([
        'resources/js/one.js',
        'resources/js/two.js',
    ]);
?>

```

Development &amp; Testing
-------------------------

[](#development--testing)

This project uses PHPUnit. A basic test harness is already configured.

### Install dependencies

[](#install-dependencies)

```
composer install

```

### Run the test suite

[](#run-the-test-suite)

```
composer test

```

### Additional scripts

[](#additional-scripts)

```
composer test:dox        # Readable "spec" style output
composer test:coverage   # Generates HTML coverage in build/coverage/html
composer test:ci         # Clover + JUnit logs in build/logs/

```

### Writing tests

[](#writing-tests)

- Place unit tests under tests/Unit
- Name test files with the suffix Test.php (e.g. BundlerTest.php)
- Use namespaces under Tests\\Unit (e.g. namespace Tests\\Unit;)
- Each test method should be public and start with test, or use #\[Test\] attributes.

An example test exists at tests/Unit/ExampleTest.php covering the Example class in src/Example.php. Feel free to delete these once you begin implementing real functionality.

### Code coverage

[](#code-coverage)

Coverage reports are written to build/. Add build/ to your .gitignore if you commit coverage locally:

```
echo "build/" >> .gitignore

```

### Continuous Integration

[](#continuous-integration)

Use the test:ci script in CI workflows to produce Clover (coverage) and JUnit (test result) artifacts for reporting.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance47

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity15

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/f6d7178329cb95270cfb9c807c3d2a6485d0f856c3d81cfe432e469e5f958748?d=identicon)[ronanchilvers](/maintainers/ronanchilvers)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ronanchilvers-bundler/health.svg)

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

PHPackages © 2026

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