Skip to content

dpup/php-closure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Library for the Google Closure Compiler

A PHP class for optimizing and serving JavaScript sources using Google's Closure Compiler web service. The sources will be compiled on demand and cached locally for performance.

Example usage:

include("libs/php-closure.php");

$c = new PhpClosure();
$c->add("my-app.js")
  ->add("popup.js")
  ->advancedMode()
  ->useClosureLibrary()
  ->cacheDir("/tmp/js-cache/")
  ->write();

This was put together pretty quickly for use on my website. Patches and improvements welcome!

Author

Dan Pupius (personal website).

License

Copyright 2010 Daniel Pupius. Apache License, Version 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages