PHPackages                             webdevlabs/webphpack - 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. webdevlabs/webphpack

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

webdevlabs/webphpack
====================

simple php alternative to webpack for automatic concatenation of multiple JavaScript and CSS files into single files

1.2.4(8y ago)10272MITPHPPHP &gt;=5.6.0

Since Sep 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/webdevlabs/webphpack)[ Packagist](https://packagist.org/packages/webdevlabs/webphpack)[ Docs](https://github.com/webdevlabs/webphpack)[ RSS](/packages/webdevlabs-webphpack/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

WebPHPack
=========

[](#webphpack)

#### WebPHPack is a simple php alternative to webpack for automatic concatenation of multiple JavaScript and CSS files into single files.

[](#webphpack-is-a-simple-php-alternative-to-webpack-for-automatic-concatenation-of-multiple-javascript-and-css-files-into-single-files)

This library replaces the style/script tags from the input html source code and returns plain html code ready for output. Loading is done asynchronously for both javascript/css.

**Added HTTP2 Push support.**

### Usage

[](#usage)

```
$webphpack = new WebPHPack($htmlsource);
$webphpack->caching = true;
$webphpack->httpush = true;
$webphpack->combineJS();
$webphpack->combineCSS();
$webphpack->output();

```

or nested

```
$webphpack = new WebPHPack($htmlsource);
$newHTMLsource = $webphpack->combineJS()->combineCSS()->output();

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~79 days

Total

3

Last Release

3004d ago

Major Versions

0.0.2 → 1.2.32018-02-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/828ed8f579e72ae3766402d1f9ab24bdb5caa379471cfc564e2cd9b12e567865?d=identicon)[webdevlabs](/maintainers/webdevlabs)

---

Top Contributors

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

---

Tags

php-librarywebpackwebphpackPHP Librarywebpackwebphpack

### Embed Badge

![Health badge](/badges/webdevlabs-webphpack/health.svg)

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

###  Alternatives

[lodash-php/lodash-php

A port of Lodash to PHP

527719.0k5](/packages/lodash-php-lodash-php)[ssch/typo3-encore

Use Webpack Encore in TYPO3 Context

107465.5k4](/packages/ssch-typo3-encore)[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

123268.2k4](/packages/maba-webpack-bundle)[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)[amirezaeb/heroqr

A Powerful QR Code Management Library For PHP

9510.3k](/packages/amirezaeb-heroqr)[rapidwebltd/php-uk-bank-holidays

This library enables developers to easily retrieve UK Bank Holiday details. Holidays can be retrieved for England &amp; Wales, Scotland, and Northern Ireland. Information about these holidays can optionally be restricted by month or date.

12405.5k](/packages/rapidwebltd-php-uk-bank-holidays)

PHPackages © 2026

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