PHPackages                             dead23angel/smarty-combine - 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. dead23angel/smarty-combine

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

dead23angel/smarty-combine
==========================

Combine and minify many JS or CSS to one file.

v2.0(4y ago)192049MITPHPPHP &gt;=5.3.0

Since Jun 18Pushed 2y ago4 watchersCompare

[ Source](https://github.com/dead23angel/smarty-combine)[ Packagist](https://packagist.org/packages/dead23angel/smarty-combine)[ RSS](/packages/dead23angel-smarty-combine/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Smarty Combine
==============

[](#smarty-combine)

Combine plugin allows concatenating several js or css files into one. It can be useful for big projects with a lot of several small CSS and JS files.

### Usage examples

[](#usage-examples)

**Template inline example Smarty 3 or 4.1.0**

`{combine input=array('/bm.js','/bm2.js') output='/cache/big.js' use_true_path=false age='30' debug=false}`

**Smarty 2 example**

**PHP code**

`$js_filelist = array('/js/core.js','/js/slideviewer.js');`

`$smarty_object->assign('js_files', $js_filelist);`

**Template code**

`{combine input=$js_files output='/cache/big.js' use_true_path=false age='30' debug=false}`

**The plugin has 4 parameters:**

- **input** - must be an array, containing list with absolute pathes to files. In Smarty 3 it can be inline array, for Smarty 2 you will need to pass from yours controller a variable, which will contains this array.
- **output** - absolute path to output file. Directory must be writable to www daemon (Usually chmod 777 resolve this problem :)
- **use\_true\_path** - value is a boolean. If it is set to true the plugin will use the paths of the asset files as they are but if set to false it will assume the files have relative paths. By default it is set to false. You can omit this parameter.
- **age** - value of seconds between checks when original files were changed. By default it is 3600 - one hour. You can omit this parameter.
- **debug** - parameter in the value of TRUE, disable compilation useful for debugging when developing a site.. By default it is FALSE. You can omit this parameter.

Basedir of css-file is added to relative paths in url()

A semicolon is added at the end of .js-files, as it is not needed at the end of a file, but is needed between concatenated files.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

4

Last Release

1711d ago

Major Versions

v1.2 → v2.02021-10-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/824992?v=4)[CWTeam](/maintainers/CWTeam)[@cwteam](https://github.com/cwteam)

---

Top Contributors

[![dead23angel](https://avatars.githubusercontent.com/u/3616247?v=4)](https://github.com/dead23angel "dead23angel (16 commits)")[![zoonman](https://avatars.githubusercontent.com/u/576297?v=4)](https://github.com/zoonman "zoonman (13 commits)")[![smv7](https://avatars.githubusercontent.com/u/58029698?v=4)](https://github.com/smv7 "smv7 (6 commits)")[![leifnel](https://avatars.githubusercontent.com/u/9819287?v=4)](https://github.com/leifnel "leifnel (1 commits)")[![mazzucode](https://avatars.githubusercontent.com/u/3603345?v=4)](https://github.com/mazzucode "mazzucode (1 commits)")[![vsvasya](https://avatars.githubusercontent.com/u/1033210?v=4)](https://github.com/vsvasya "vsvasya (1 commits)")

---

Tags

minifysmarty

### Embed Badge

![Health badge](/badges/dead23angel-smarty-combine/health.svg)

```
[![Health](https://phpackages.com/badges/dead23angel-smarty-combine/health.svg)](https://phpackages.com/packages/dead23angel-smarty-combine)
```

###  Alternatives

[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k32.3M428](/packages/matthiasmullie-minify)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[tubalmartin/cssmin

A PHP port of the YUI CSS compressor

23142.7M63](/packages/tubalmartin-cssmin)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[natxet/cssmin

Minifying CSS

827.5M98](/packages/natxet-cssmin)[stolz/assets

An ultra-simple-to-use assets management library

289527.4k8](/packages/stolz-assets)

PHPackages © 2026

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