Recommend this page to a friend! |
Classes of ikhsan | jQuery Calx | php-build/vendor/devize/closure-compiler/README.md | Download |
|
|
DownloadClosure CompilerWhat is the Closure Compiler?From Google: > 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 library exist?The Closure Compiler (CC), as provided by Google, is available as a web application or for download as a commandline Java jarfile. This file can be used to run your own compilations. However, to use the compiler this way, you must type (or paste) all your javascript filenames into a terminal window, which can be cumbersome and is not easy to automate. This library provides a PHP wrapper around the CC which can be used in PHP scripts. Using the wrapper, you can connect the configuration of your PHP application to the compiler and automate your compilations. Your compilation build script can then be used in, for instance, a Phing script. InstallationClone this repository and include the classes. Or use Composer:
The library uses Composer's autoloader so if your application uses it as well, you don't have to do anything else. UsageAssuming you have managed your own autoloader, set your own includes or are using Composer's autoloader:
The
When you make a mistake, an exception of the class LicenseThis library packages the Closure Compiler from Google. The folder The PHP wrapper files are licensed under the MIT license. FeedbackAny feedback is welcome; use the Github system or send a tweet to @breuls. |