markstory/asset_compress — pull request #112 by afolgado (2012-05-22 09:42:21+00:00)
Title: Added support for fetching remote assets.

The paths[] array now accepts remote paths.

For example:

[js]
paths[] = http://cdn.mysite.org/js

[mybuild.js]
files[] = jquery/latest/jquery.min.js

This will fetch http://cdn.mysite.org/js/jquery/latest/jquery.min.js and integrate it into mybuild.js. Build will fail if the file cannot be read, as it happens with local files.

Of course this is compatible with local paths, filters and any other stuff that worked previously.

For now, just HTTP is supported, but it can be easily upgraded. PHP5 is required, as stream_get_contents() is used.