https://github.com/dpup/php-closure
https://github.com/dpup/php-closure
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dpup/php-closure
- Owner: dpup
- License: other
- Created: 2015-03-12T17:45:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-31T15:48:01.000Z (over 8 years ago)
- Last Synced: 2025-04-11T14:43:17.929Z (about 1 year ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 11
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).