PHPackages                             statika/statika - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. statika/statika

ActiveLibrary[File &amp; Storage](/categories/file-storage)

statika/statika
===============

A static file manager to compress CSS/JS files with project specific configs, filesets and compressors

v1.0(13y ago)112MITJavaScriptPHP &gt;=5.3.0

Since Feb 11Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)Used By (0)

Statika... what? [![Build Status](https://camo.githubusercontent.com/68a7880d9d749576aca3f55d5543e5de84fe94c3844780d343a16269ba35b2a5/68747470733a2f2f7472617669732d63692e6f72672f76656e7969692f53746174696b612e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/venyii/Statika)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#statika-what-)

Statika is a file manager for the static files of your projects. It uses 3rd-party compressors/minifiers to combine and compress your CSS/JS files, reduce filesize and increase versions automatically.

Project Config
--------------

[](#project-config)

The config file describes various things like the compressor(s) you wish to use, versioning or the filesets. You can find a config template in the `conf/` folder of this project.

Available Compressors
---------------------

[](#available-compressors)

Statika currently supports these compressors:

- Google Closure Compiler (`closure`) - JS only ( *via binary* )
- UglifyJS (`uglifyjs`) - JS only ( *via webservice* )
- YUI Compressor (`yui`) - JS &amp; CSS ( *via binary* )

Available Version Types
-----------------------

[](#available-version-types)

You can specify the output name for each fileset. For now, there are 2 types of versioning. Each time you compress a config, Statika will check if there is a previous minified version and automatically increase the version. (e.g. *0001* becomes *0002* ).

- Numbers `{version|nr}` (e.g. `test.min.0001.js`)
- MD5 `{version|md5}` (e.g. `test.min.098f6bcd4621d373cade4e832627b4f6.js`)

Getting Started
---------------

[](#getting-started)

First of all you have to install the project dependencies via [Composer](http://getcomposer.org) using the following command:

```
$ composer install

```

If that´s completed, **make sure that the file paths for the binary compressors/minifiers in the** `src/config.php` **are correct.**

### There are two ways using Statika:

[](#there-are-two-ways-using-statika)

- Run from source
- Compile the source (create a phar archive) - if you´d like to use Statika globally

#### Run from source

[](#run-from-source)

To run Statika from source, use the following command:

```
$ ./bin/statika

```

#### Compile the source

[](#compile-the-source)

To compile the PHP Archive ( *PHAR* ) with the following command:

```
$ ./bin/compile

```

If you´d like to use Statika globally, move the compiled file (`statika.phar`) to your `bin` dir, e.g. `/usr/local/bin/statika`, and set the proper file modes using:

```
$ sudo mv bin/statika.phar /usr/local/bin/statika
$ sudo chmod +x /usr/local/bin/statika

```

Usage
-----

[](#usage)

### To validate a defined config:

[](#to-validate-a-defined-config)

```
$ statika validate /path/to/config.json

```

[![](https://camo.githubusercontent.com/a91b1b093952d5d3ac89ea1db7a27d5c5cf57402c916ceefcde30d7f4a33e78f/687474703a2f2f76656e7969692e6769746875622e636f6d2f53746174696b612f696d616765732f73742d76616c69646174652e706e67)](https://camo.githubusercontent.com/a91b1b093952d5d3ac89ea1db7a27d5c5cf57402c916ceefcde30d7f4a33e78f/687474703a2f2f76656e7969692e6769746875622e636f6d2f53746174696b612f696d616765732f73742d76616c69646174652e706e67)

### To compress a defined config:

[](#to-compress-a-defined-config)

```
$ statika compress /path/to/config.json

```

[![](https://camo.githubusercontent.com/9df6d9c370a18a644af1d8d8a87341025dca09f37bc97b05c42544f5022ac2b5/687474703a2f2f76656e7969692e6769746875622e636f6d2f53746174696b612f696d616765732f73742d636f6d70726573732e706e67)](https://camo.githubusercontent.com/9df6d9c370a18a644af1d8d8a87341025dca09f37bc97b05c42544f5022ac2b5/687474703a2f2f76656e7969692e6769746875622e636f6d2f53746174696b612f696d616765732f73742d636f6d70726573732e706e67)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4844d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cbcebaf5f3ad8639a84d9176380db94841fd5dc1d4b4b50d212b1b3d267fe73?d=identicon)[venyii](/maintainers/venyii)

---

Top Contributors

[![vntw](https://avatars.githubusercontent.com/u/502368?v=4)](https://github.com/vntw "vntw (49 commits)")

---

Tags

minifyminifierfilecompressorcompressstatic

### Embed Badge

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

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

###  Alternatives

[sonata-project/media-bundle

Symfony SonataMediaBundle

4625.5M71](/packages/sonata-project-media-bundle)[tubalmartin/cssmin

A PHP port of the YUI CSS compressor

23141.0M53](/packages/tubalmartin-cssmin)[voku/html-min

HTML Compressor and Minifier

1804.7M39](/packages/voku-html-min)[sensiolabs/minify-bundle

Assets Minifier (CSS, JS) for Symfony &amp; Minify integration in Asset Mapper

5694.9k1](/packages/sensiolabs-minify-bundle)[ranky/media-bundle

A complete and friendly media file manager for Symfony

681.3k](/packages/ranky-media-bundle)[mitmelon/compress

Advanced file compresser which reduces and encrypt large files to smaller chunks by saving them as binary for later use.

184.2k](/packages/mitmelon-compress)

PHPackages © 2026

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