An open API service indexing awesome lists of open source software.

https://github.com/dpup/php-closure


https://github.com/dpup/php-closure

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# PHP Library for the Google Closure Compiler

A PHP class for optimizing and serving JavaScript sources using Google's
[Closure Compiler web service](http://code.google.com/closure/compiler/docs/gettingstarted_api.html).
The sources will be compiled on demand and cached locally for performance.

Example usage:

```php
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](http://pupius.co.uk). Patches and improvements welcome!

Author
------

[Dan Pupius](https://github.com/dpup) ([personal website](http://pupius.co.uk)).

License
-------

Copyright 2010 [Daniel Pupius](http://pupius.co.uk/).
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).