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

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

nightprince/smarty-combine
==========================

Combine and minify many JS or CSS to one file.

v2.0.12(2y ago)09MITPHPPHP &gt;=5.6.40

Since Jul 7Pushed 2y agoCompare

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

READMEChangelog (3)Dependencies (1)Versions (4)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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Total

3

Last Release

1092d ago

### Community

Maintainers

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

---

Top Contributors

[![dead23angel](https://avatars.githubusercontent.com/u/3616247?v=4)](https://github.com/dead23angel "dead23angel (14 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 (5 commits)")[![Nightprince](https://avatars.githubusercontent.com/u/12217476?v=4)](https://github.com/Nightprince "Nightprince (4 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)")[![leifnel](https://avatars.githubusercontent.com/u/9819287?v=4)](https://github.com/leifnel "leifnel (1 commits)")

---

Tags

minifysmarty

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/nightprince-smarty-combine/health.svg)](https://phpackages.com/packages/nightprince-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.0k33.1M462](/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

23143.5M66](/packages/tubalmartin-cssmin)[vinkius-labs/laravel-page-speed

Laravel Page Speed

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

Minifying CSS

917.5M99](/packages/natxet-cssmin)[stolz/assets

An ultra-simple-to-use assets management library

289531.9k8](/packages/stolz-assets)

PHPackages © 2026

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