PHPackages                             stalinko/google-closure-compiler - 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. stalinko/google-closure-compiler

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

stalinko/google-closure-compiler
================================

Latest build of Google Closure Compiler available for install via Composer

v2018.2.4(8y ago)03.8kMIT

Since Jan 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Stalinko/google-closure-compiler)[ Packagist](https://packagist.org/packages/stalinko/google-closure-compiler)[ RSS](/packages/stalinko-google-closure-compiler/feed)WikiDiscussions master Synced 1mo ago

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

Google Closure Compiler for Composer
====================================

[](#google-closure-compiler-for-composer)

What is the Google Closure Compiler?
------------------------------------

[](#what-is-the-google-closure-compiler)

From [Google](https://developers.google.com/closure/compiler/):

> The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.

Why does this repository exist?
-------------------------------

[](#why-does-this-repository-exist)

If you don't want to commit the big (~6mb) compiler jar-file into your repository and want to install it via composer then this package is for you. It's the latest compiled jar-binary of the Google Closure Compiler which can be easily installed via Composer and added into your project on the fly.

I didn't change anything in the binary. All copyrights belong to Google.

Installation
------------

[](#installation)

[![Packagist](https://camo.githubusercontent.com/63c2511b3da804caea1924fff0371f71f153869fb5aa23eb0a1671cf85939952/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374616c696e6b6f2f676f6f676c652d636c6f737572652d636f6d70696c65722e737667)](https://packagist.org/packages/stalinko/google-closure-compiler)

`composer require stalinko/google-closure-compiler`

Usage
-----

[](#usage)

Read the [Google Docs](https://developers.google.com/closure/compiler/docs/gettingstarted_app) about how to use it.

Here is just a simple example:

`java -jar vendor/stalinko/google-closure-compiler/compiler.jar --js hello.js --js_output_file hello-compiled.js`

License
-------

[](#license)

This library contains the Closure Compiler from Google. The file `compiler.jar` is the result of unpacking the Google-supplied [Zip file](http://closure-compiler.googlecode.com/files/compiler-latest.zip).

Feedback
--------

[](#feedback)

Any feedback is welcome; use Github for communication.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3005d ago

Major Versions

v1.0.0 → v2018.2.42018-02-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ed6240873e5dac32a64eba04a2d1bedcce705e9c0a8299dcfc4818a3b93d11e?d=identicon)[Stalinko](/maintainers/Stalinko)

---

Top Contributors

[![Stalinko](https://avatars.githubusercontent.com/u/1908913?v=4)](https://github.com/Stalinko "Stalinko (3 commits)")

### Embed Badge

![Health badge](/badges/stalinko-google-closure-compiler/health.svg)

```
[![Health](https://phpackages.com/badges/stalinko-google-closure-compiler/health.svg)](https://phpackages.com/packages/stalinko-google-closure-compiler)
```

PHPackages © 2026

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